atomic_view 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/atomic_view/components/tabs_component.rb +6 -2
- data/lib/atomic_view/version.rb +1 -1
- data/lib/atomic_view.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 165a6c2614a15ffc294ecb82a4c969e73bdc9821e05f5cd11961b2bc8670d863
|
|
4
|
+
data.tar.gz: 19adaf0af4395f5880d1ad44a5f5fdb4b273d841a95ed5f072e88830c7521c18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5beeb078b1ea0fff91b7ad5b9e13c8f3336da75a4eeb1f37f0f4686e2556bd1896b1dc3d87d5d4d562de8fe3b819e20b312c9f556411d49258172afc43c23ffe
|
|
7
|
+
data.tar.gz: c69212fa8f25195f3724fa13a58db718235d0877379bd7ba7339c4354505d6e5af83430ca937ffd7957d137a4cd1496e3f272a1ee9ba8e358a39e7c9a5220bc7
|
|
@@ -14,7 +14,7 @@ module AtomicView
|
|
|
14
14
|
#
|
|
15
15
|
# Unlike SegmentedControlComponent's pill track (mutually-exclusive
|
|
16
16
|
# filter chips raised on a muted background), tabs read as page-level
|
|
17
|
-
# navigation -- a plain row of links with a
|
|
17
|
+
# navigation -- a plain row of links with a neutral underline on the
|
|
18
18
|
# active one, sharing a bottom divider with the rest of the row.
|
|
19
19
|
#
|
|
20
20
|
# Pass `turbo_frame:` to swap tabs without a full page load: every tab
|
|
@@ -62,8 +62,12 @@ module AtomicView
|
|
|
62
62
|
"-mb-px border-b-2 pb-3 text-sm font-semibold"
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
# Neutral foreground for both the text and the underline (not
|
|
66
|
+
# `text-accent`/`border-accent`) -- matches SegmentedControlComponent's
|
|
67
|
+
# active segment, which raises the selected option in
|
|
68
|
+
# `text-foreground` rather than an accent color.
|
|
65
69
|
def active_classes
|
|
66
|
-
"border-
|
|
70
|
+
"border-foreground text-foreground"
|
|
67
71
|
end
|
|
68
72
|
|
|
69
73
|
def inactive_classes
|
data/lib/atomic_view/version.rb
CHANGED
data/lib/atomic_view.rb
CHANGED