@eqtylab/equality 5.3.2 → 5.3.4
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
4
|
|
|
5
|
+
## 5.3.4 - 2026-11-06
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `Nav` rows and rail items keep their height, padding and text size in a site built against the
|
|
10
|
+
published package, where they shrank to bare text. Only production builds of sites using
|
|
11
|
+
`@eqtylab/equality/theme-config.css` were affected; dev servers looked right.
|
|
12
|
+
|
|
13
|
+
## 5.3.3 - 2026-11-05
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- A clickable `Table` row lights grey on hover and when selected, like a Nav row, where it turned
|
|
18
|
+
purple.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Every other `Table` row is a faint grey step from its neighbours, where Chrome tinted it brown,
|
|
23
|
+
most visibly in dark mode. In light mode the step is easier to see than before, where it had
|
|
24
|
+
almost disappeared, and in dark mode it is a little stronger.
|
|
25
|
+
|
|
5
26
|
## 5.3.2 - 2026-11-03
|
|
6
27
|
|
|
7
28
|
### Fixed
|
|
@@ -89,27 +89,24 @@
|
|
|
89
89
|
padding-block: calc(0.25rem * 2);
|
|
90
90
|
}
|
|
91
91
|
.table-body .table-row:nth-child(even) {
|
|
92
|
-
background-color:
|
|
92
|
+
background-color: color-mix(in srgb, color(display-p3 0 0 0) 3%, transparent);
|
|
93
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
94
|
+
background-color: color-mix(in oklch, var(--color-text-primary) 3%, transparent);
|
|
95
|
+
}
|
|
96
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
97
|
+
background-color: color-mix(in srgb, color(display-p3 0 0 0) 4%, transparent);
|
|
98
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
99
|
+
background-color: color-mix(in oklch, var(--color-text-primary) 4%, transparent);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
93
102
|
}
|
|
94
103
|
.table-row--clickable:not([data-state='selected']) {
|
|
95
|
-
--mix-color: var(--color-brand-primary);
|
|
96
|
-
--hover-darken: 55%;
|
|
97
|
-
--hover-lighten: 55%;
|
|
98
104
|
cursor: pointer;
|
|
99
105
|
}
|
|
100
106
|
.table-row--clickable:not([data-state='selected']):hover:not(
|
|
101
107
|
:has(button:hover, a:not(.table-row-link):hover)
|
|
102
108
|
) {
|
|
103
|
-
background-color: var(--
|
|
104
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
105
|
-
background-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%)) !important;
|
|
106
|
-
}
|
|
107
|
-
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
108
|
-
background-color: var(--mix-color) !important;
|
|
109
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
110
|
-
background-color: color-mix(in oklch, var(--mix-color), black var(--hover-darken, 20%)) !important;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
109
|
+
background-color: var(--color-list-item-hover) !important;
|
|
113
110
|
}
|
|
114
111
|
.table-row--linked {
|
|
115
112
|
position: relative;
|
|
@@ -141,16 +138,7 @@
|
|
|
141
138
|
outline-color: var(--color-brand-primary, color(display-p3 0.7319 0.6108 0.8873));
|
|
142
139
|
}
|
|
143
140
|
.table-body .table-row--clickable[data-state='selected'] {
|
|
144
|
-
background-color:
|
|
145
|
-
color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873), white 40%),
|
|
146
|
-
color-mix(in srgb, color(display-p3 0.7319 0.6108 0.8873), black 40%)
|
|
147
|
-
);
|
|
148
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
149
|
-
background-color: light-dark(
|
|
150
|
-
color-mix(in oklch, var(--color-brand-primary), white 40%),
|
|
151
|
-
color-mix(in oklch, var(--color-brand-primary), black 40%)
|
|
152
|
-
);
|
|
153
|
-
}
|
|
141
|
+
background-color: var(--color-list-item-current);
|
|
154
142
|
}
|
|
155
143
|
.table-caption {
|
|
156
144
|
margin-top: calc(0.25rem * 4);
|
|
@@ -170,16 +158,6 @@
|
|
|
170
158
|
}
|
|
171
159
|
.table--sunken .table-body {
|
|
172
160
|
background-color: var(--color-background-sunken, color(display-p3 0.8648 0.8708 0.8779));
|
|
173
|
-
--table-stripe-bg: light-dark(
|
|
174
|
-
color-mix(in srgb, color(display-p3 0.8648 0.8708 0.8779), black 2%),
|
|
175
|
-
color-mix(in srgb, color(display-p3 0.8648 0.8708 0.8779), white 4%)
|
|
176
|
-
);
|
|
177
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
178
|
-
--table-stripe-bg: light-dark(
|
|
179
|
-
color-mix(in oklch, var(--color-background-sunken), black 2%),
|
|
180
|
-
color-mix(in oklch, var(--color-background-sunken), white 4%)
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
161
|
}
|
|
184
162
|
.table--base .table-header,
|
|
185
163
|
.table--base .table-footer {
|
|
@@ -187,16 +165,6 @@
|
|
|
187
165
|
}
|
|
188
166
|
.table--base .table-body {
|
|
189
167
|
background-color: var(--color-background-base, color(display-p3 1 1 1));
|
|
190
|
-
--table-stripe-bg: light-dark(
|
|
191
|
-
color-mix(in srgb, color(display-p3 1 1 1), black 2%),
|
|
192
|
-
color-mix(in srgb, color(display-p3 1 1 1), white 4%)
|
|
193
|
-
);
|
|
194
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
195
|
-
--table-stripe-bg: light-dark(
|
|
196
|
-
color-mix(in oklch, var(--color-background-base), black 2%),
|
|
197
|
-
color-mix(in oklch, var(--color-background-base), white 4%)
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
168
|
}
|
|
201
169
|
.table--raised .table-header,
|
|
202
170
|
.table--raised .table-footer {
|
|
@@ -204,16 +172,6 @@
|
|
|
204
172
|
}
|
|
205
173
|
.table--raised .table-body {
|
|
206
174
|
background-color: var(--color-background-raised, color(display-p3 0.9554 0.9616 0.9688));
|
|
207
|
-
--table-stripe-bg: light-dark(
|
|
208
|
-
color-mix(in srgb, color(display-p3 0.9554 0.9616 0.9688), black 2%),
|
|
209
|
-
color-mix(in srgb, color(display-p3 0.9554 0.9616 0.9688), white 4%)
|
|
210
|
-
);
|
|
211
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
212
|
-
--table-stripe-bg: light-dark(
|
|
213
|
-
color-mix(in oklch, var(--color-background-raised), black 2%),
|
|
214
|
-
color-mix(in oklch, var(--color-background-raised), white 4%)
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
175
|
}
|
|
218
176
|
.table--overlay .table-header,
|
|
219
177
|
.table--overlay .table-footer {
|
|
@@ -221,16 +179,6 @@
|
|
|
221
179
|
}
|
|
222
180
|
.table--overlay .table-body {
|
|
223
181
|
background-color: var(--color-background-overlay, color(display-p3 0.9946 0.9998 0.9999));
|
|
224
|
-
--table-stripe-bg: light-dark(
|
|
225
|
-
color-mix(in srgb, color(display-p3 0.9946 0.9998 0.9999), black 2%),
|
|
226
|
-
color-mix(in srgb, color(display-p3 0.9946 0.9998 0.9999), white 4%)
|
|
227
|
-
);
|
|
228
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
229
|
-
--table-stripe-bg: light-dark(
|
|
230
|
-
color-mix(in oklch, var(--color-background-overlay), black 2%),
|
|
231
|
-
color-mix(in oklch, var(--color-background-overlay), white 4%)
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
182
|
}
|
|
235
183
|
.table--sunken.table-border {
|
|
236
184
|
border-color: var(--color-border-sunken, color(display-p3 0.7432 0.7432 0.7432));
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
|
|
9
9
|
.root {
|
|
10
10
|
/* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
|
|
11
|
-
--eq-list-item-height:
|
|
12
|
-
--eq-list-item-padding-x:
|
|
13
|
-
--eq-list-item-gap:
|
|
14
|
-
--eq-list-item-icon-size:
|
|
15
|
-
--eq-list-item-font-size:
|
|
11
|
+
--eq-list-item-height: --spacing(9); /* 36 */
|
|
12
|
+
--eq-list-item-padding-x: --spacing(2); /* 8 */
|
|
13
|
+
--eq-list-item-gap: --spacing(2); /* 8, icon to text */
|
|
14
|
+
--eq-list-item-icon-size: --spacing(4); /* 16 */
|
|
15
|
+
--eq-list-item-font-size: --theme(--text-sm); /* 14 */
|
|
16
16
|
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
17
17
|
/* list: the rows together */
|
|
18
|
-
--eq-list-gap:
|
|
19
|
-
--eq-list-group-gap:
|
|
20
|
-
--eq-list-label-gap:
|
|
21
|
-
--eq-list-label-font-size:
|
|
22
|
-
--eq-list-indent:
|
|
18
|
+
--eq-list-gap: --spacing(0.5); /* 2, between items */
|
|
19
|
+
--eq-list-group-gap: --spacing(3); /* 12, above a group label */
|
|
20
|
+
--eq-list-label-gap: --spacing(1); /* 4, label to its first item */
|
|
21
|
+
--eq-list-label-font-size: --theme(--text-xs); /* 12 */
|
|
22
|
+
--eq-list-indent: --spacing(3); /* 12, child indent when items have no icons */
|
|
23
23
|
/* nav-motion: a drill-in and a folder opening share one motion. NavDrill reads these in
|
|
24
24
|
JavaScript, folder groups in CSS */
|
|
25
25
|
--eq-nav-motion-duration: 300ms;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
var(--color-text-secondary)
|
|
34
34
|
);
|
|
35
35
|
/* control: a stand-alone element */
|
|
36
|
-
--eq-control-height:
|
|
36
|
+
--eq-control-height: --spacing(10); /* 40: rail item; later Button, Input */
|
|
37
37
|
/* touch: the minimum tap target */
|
|
38
38
|
--eq-touch-target: 0px;
|
|
39
39
|
|
package/dist/theme-decisions.css
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
/* Never declare @theme { --spacing } here: it rewrites every utility to var(--spacing, …) and
|
|
2
2
|
changes every component's compiled CSS. */
|
|
3
|
+
/* Never read var(--spacing) or var(--text-*) here: the theme is inline, so consumer builds leave them undefined. */
|
|
3
4
|
|
|
4
5
|
/* DECISIONS: Equality's names, --eq-{thing}-{property}. Parts read only these: h-(--eq-list-item-height).
|
|
5
6
|
theme-decisions-scoped.css is generated from this file: run `pnpm build:decisions` after
|
|
6
7
|
changing it, or tests/theme-css.test.ts fails. */
|
|
7
8
|
html {
|
|
8
9
|
/* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
|
|
9
|
-
--eq-list-item-height:
|
|
10
|
-
--eq-list-item-padding-x:
|
|
11
|
-
--eq-list-item-gap:
|
|
12
|
-
--eq-list-item-icon-size:
|
|
13
|
-
--eq-list-item-font-size:
|
|
10
|
+
--eq-list-item-height: --spacing(9); /* 36 */
|
|
11
|
+
--eq-list-item-padding-x: --spacing(2); /* 8 */
|
|
12
|
+
--eq-list-item-gap: --spacing(2); /* 8, icon to text */
|
|
13
|
+
--eq-list-item-icon-size: --spacing(4); /* 16 */
|
|
14
|
+
--eq-list-item-font-size: --theme(--text-sm); /* 14 */
|
|
14
15
|
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
15
16
|
/* list: the rows together */
|
|
16
|
-
--eq-list-gap:
|
|
17
|
-
--eq-list-group-gap:
|
|
18
|
-
--eq-list-label-gap:
|
|
19
|
-
--eq-list-label-font-size:
|
|
20
|
-
--eq-list-indent:
|
|
17
|
+
--eq-list-gap: --spacing(0.5); /* 2, between items */
|
|
18
|
+
--eq-list-group-gap: --spacing(3); /* 12, above a group label */
|
|
19
|
+
--eq-list-label-gap: --spacing(1); /* 4, label to its first item */
|
|
20
|
+
--eq-list-label-font-size: --theme(--text-xs); /* 12 */
|
|
21
|
+
--eq-list-indent: --spacing(3); /* 12, child indent when items have no icons */
|
|
21
22
|
/* nav-motion: a drill-in and a folder opening share one motion. NavDrill reads these in
|
|
22
23
|
JavaScript, folder groups in CSS */
|
|
23
24
|
--eq-nav-motion-duration: 300ms;
|
|
@@ -31,7 +32,7 @@ html {
|
|
|
31
32
|
var(--color-text-secondary)
|
|
32
33
|
);
|
|
33
34
|
/* control: a stand-alone element */
|
|
34
|
-
--eq-control-height:
|
|
35
|
+
--eq-control-height: --spacing(10); /* 40: rail item; later Button, Input */
|
|
35
36
|
/* touch: the minimum tap target */
|
|
36
37
|
--eq-touch-target: 0px;
|
|
37
38
|
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
--color-amber-100: color(display-p3 0.9767 0.9238 0.8764);
|
|
8
8
|
--color-blue-500: color(display-p3 0.2366 0.3261 0.7513);
|
|
9
9
|
--spacing: 0.25rem;
|
|
10
|
-
--text-xs: 0.75rem;
|
|
11
|
-
--text-sm: 0.875rem;
|
|
12
10
|
--radius-md: 0.375rem;
|
|
13
11
|
--color-mixed-light: var(--mix-color);
|
|
14
12
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -18,7 +16,6 @@
|
|
|
18
16
|
@supports (color: color-mix(in lab, red, red)) {
|
|
19
17
|
--color-mixed-dark: color-mix(in oklch, var(--mix-color), black var(--hover-darken, 20%));
|
|
20
18
|
}
|
|
21
|
-
--color-background-base: color(display-p3 1 1 1);
|
|
22
19
|
--color-background-overlay: color(display-p3 0.9946 0.9998 0.9999);
|
|
23
20
|
--color-background-raised: color(display-p3 0.9554 0.9616 0.9688);
|
|
24
21
|
--color-background-sunken: color(display-p3 0.8648 0.8708 0.8779);
|
|
@@ -56,7 +53,6 @@
|
|
|
56
53
|
--color-badge-text-success: color(display-p3 0.1097 0.1998 0.08667);
|
|
57
54
|
--color-badge-text-warning: color(display-p3 0.2723 0.1933 0.09642);
|
|
58
55
|
--color-border: color(display-p3 0.7432 0.7432 0.7432);
|
|
59
|
-
--color-brand-primary: color(display-p3 0.7319 0.6108 0.8873);
|
|
60
56
|
--color-button-danger-fill: color(display-p3 0.7365 0.2216 0.2026);
|
|
61
57
|
--color-button-danger-text: color(display-p3 1 1 1);
|
|
62
58
|
--color-button-neutral-fill: color(display-p3 0.3886 0.3886 0.3886);
|
|
@@ -941,17 +937,17 @@
|
|
|
941
937
|
--color-text-warning: color(display-p3 0.863 0.6958 0.4108);
|
|
942
938
|
}
|
|
943
939
|
.root {
|
|
944
|
-
--eq-list-item-height: calc(
|
|
945
|
-
--eq-list-item-padding-x: calc(
|
|
946
|
-
--eq-list-item-gap: calc(
|
|
947
|
-
--eq-list-item-icon-size: calc(
|
|
948
|
-
--eq-list-item-font-size:
|
|
940
|
+
--eq-list-item-height: calc(0.25rem * 9);
|
|
941
|
+
--eq-list-item-padding-x: calc(0.25rem * 2);
|
|
942
|
+
--eq-list-item-gap: calc(0.25rem * 2);
|
|
943
|
+
--eq-list-item-icon-size: calc(0.25rem * 4);
|
|
944
|
+
--eq-list-item-font-size: 0.875rem;
|
|
949
945
|
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
950
|
-
--eq-list-gap: calc(
|
|
951
|
-
--eq-list-group-gap: calc(
|
|
952
|
-
--eq-list-label-gap: calc(
|
|
953
|
-
--eq-list-label-font-size:
|
|
954
|
-
--eq-list-indent: calc(
|
|
946
|
+
--eq-list-gap: calc(0.25rem * 0.5);
|
|
947
|
+
--eq-list-group-gap: calc(0.25rem * 3);
|
|
948
|
+
--eq-list-label-gap: calc(0.25rem * 1);
|
|
949
|
+
--eq-list-label-font-size: 0.75rem;
|
|
950
|
+
--eq-list-indent: calc(0.25rem * 3);
|
|
955
951
|
--eq-nav-motion-duration: 300ms;
|
|
956
952
|
--eq-nav-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
957
953
|
--eq-nav-motion-nudge: 12px;
|
|
@@ -960,7 +956,7 @@
|
|
|
960
956
|
var(--color-text-primary),
|
|
961
957
|
var(--color-text-secondary)
|
|
962
958
|
);
|
|
963
|
-
--eq-control-height: calc(
|
|
959
|
+
--eq-control-height: calc(0.25rem * 10);
|
|
964
960
|
--eq-touch-target: 0px;
|
|
965
961
|
--color-list-item-current: color-mix(in srgb, color(display-p3 0 0 0) 10%, transparent);
|
|
966
962
|
@supports (color: color-mix(in lab, red, red)) {
|