@apliteni/apliteni-ui 0.162.1 → 0.162.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.
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
**Rule:** Set coarse-pointer field text to 16px without scaling it down.
|
|
72
72
|
|
|
73
|
-
**Why:** iOS Safari zooms into a field under 16px and does not zoom out.
|
|
73
|
+
**Why:** iOS Safari zooms into a field under 16px and does not zoom out.
|
|
74
74
|
|
|
75
75
|
**Do:** Real 16px text in the field itself.
|
|
76
76
|
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
|
|
85
85
|
**Rule:** Keep body text close to 7:1 at every size, not merely at 4.5:1.
|
|
86
86
|
|
|
87
|
-
**Why:** Stronger contrast supports comfortable reading at every size.
|
|
87
|
+
**Why:** Stronger contrast supports comfortable reading at every size.
|
|
88
88
|
|
|
89
89
|
**Do:** Body ink at every size, with size, weight and spacing carrying the hierarchy.
|
|
90
90
|
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
**Rule:** Build keyboard behaviour before pointer behaviour and styling.
|
|
124
124
|
|
|
125
|
-
**Why:** Keyboard access defines the interaction before visual polish.
|
|
125
|
+
**Why:** Keyboard access defines the interaction before visual polish.
|
|
126
126
|
|
|
127
127
|
**Do:** Focus, order and keyboard actions working before anything is styled.
|
|
128
128
|
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
**Rule:** In forced colours, fill a selected item with the highlight colour and its label with the highlight text colour.
|
|
91
91
|
|
|
92
|
-
**Why:** The mode replaces author backgrounds.
|
|
92
|
+
**Why:** The mode replaces author backgrounds.
|
|
93
93
|
|
|
94
94
|
**Do:** Ring a focused selected item in the page text colour.
|
|
95
95
|
|
package/package.json
CHANGED
package/react/dist/index.css
CHANGED
package/src/styles/file-drop.css
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
.ui-drop__error { color: var(--pink); }
|
|
50
50
|
|
|
51
51
|
/* Closes the name's line on the edge the content ends on, in every state. */
|
|
52
|
-
.ui-drop__actions { display: flex; flex: none; align-items:
|
|
52
|
+
.ui-drop__actions { display: flex; flex: none; align-items: stretch; gap: var(--space-2); margin-left: auto; } /* stretch: a small button sizes to its content, so a glyph and a bare label differ by 1px. #768 */
|
|
53
53
|
|
|
54
54
|
/* The width of the row it reports on, so 40% reads as 40% rather than as a dash.
|
|
55
55
|
The ground is the kit's token for sunken tracks; --surface-3 was invisible. */
|
|
@@ -130,8 +130,10 @@
|
|
|
130
130
|
.ui-filter-bar .ui-dropdown__item.is-selected:hover { background: color-mix(in srgb, var(--glow-purple), var(--accent) 9%); /* code-bg: inherit — a translucent wash moves the ground, not the chip on it. */ }
|
|
131
131
|
|
|
132
132
|
/* A chip's height — a remove mark's line box, padding and border — named so every chip,
|
|
133
|
-
with or without a mark, and a control on a line of its own stand as tall.
|
|
134
|
-
|
|
133
|
+
with or without a mark, and a control on a line of its own stand as tall. A toolbar
|
|
134
|
+
names it too, for the control at the end of a split row. Rounded up to a whole pixel:
|
|
135
|
+
a fractional line moved a scrolled table below it off the pixel its hit test uses. #768 */
|
|
136
|
+
.ui-filter-bar, .ui-toolbar { --ui-filter-row-h: round(up, calc(2px + 2 * var(--space-1) + var(--leading-normal) * var(--text-lg)), 1px); }
|
|
135
137
|
|
|
136
138
|
/* A chip's neighbour takes the chip's corner, that height and edge, but not its painted fill:
|
|
137
139
|
the trigger's own edge can differ from the row's, while its --surface made the
|
|
@@ -143,6 +145,13 @@
|
|
|
143
145
|
why: guidelines/colour-and-theming.md#keep-text-off-grey-fills */
|
|
144
146
|
.ui-filter-bar [data-filter-add] { display: flex; align-self: stretch; }
|
|
145
147
|
.ui-filter-bar [data-filter-add] .ui-dropdown { display: flex; }
|
|
148
|
+
/* In a toolbar the chips, the add control and Clear all fill the line, so they stand as
|
|
149
|
+
tall as the field beside them and share its centre. #768 */
|
|
150
|
+
.ui-toolbar .ui-filter-bar { align-items: stretch; }
|
|
151
|
+
.ui-toolbar .ui-filter-bar [data-filter-clear] { display: flex; }
|
|
152
|
+
/* Clear all keeps a chip's height when it wraps to a line of its own, so a wider gap
|
|
153
|
+
that moves it to the next line does not change its size. */
|
|
154
|
+
.ui-toolbar .ui-filter-bar [data-filter-clear] button { min-height: var(--ui-filter-row-h); }
|
|
146
155
|
.ui-filter-bar [data-filter-add] .ui-dropdown__trigger { border-radius: var(--radius-sm); min-height: var(--ui-filter-row-h); border-color: var(--control-edge); background: transparent; }
|
|
147
156
|
.ui-filter-bar [data-filter-add] .ui-dropdown__trigger svg { width: 16px; height: 16px; flex: none; stroke-width: 2.4; }
|
|
148
157
|
.ui-filter-bar [data-filter-add] .ui-dropdown__trigger:enabled:hover:not(:focus-visible) { border-color: var(--accent); }
|
package/src/styles/layout.css
CHANGED
|
@@ -535,6 +535,18 @@
|
|
|
535
535
|
.ui-app__main .ui-card__row { flex-wrap: wrap; gap: var(--space-3); }
|
|
536
536
|
}
|
|
537
537
|
|
|
538
|
+
/* -- One height for a row of controls -------------------------------------- */
|
|
539
|
+
/* Every control on a toolbar line takes the line's height, so it shares the field's
|
|
540
|
+
centre too. The plain boxes around a filter bar and a segmented track take back the
|
|
541
|
+
stretch they leave out elsewhere. The phone step's split end keeps its own height,
|
|
542
|
+
but beside a filter bar it takes a chip's height and so the first line's centre.
|
|
543
|
+
These sit below the phone shell because guideline references cite the lines above. #768 */
|
|
544
|
+
.ui-toolbar :where(div:has(.ui-filter-bar)) { display: grid; }
|
|
545
|
+
.ui-toolbar > .ui-seg { align-self: stretch; }
|
|
546
|
+
@media (max-width: 560px) {
|
|
547
|
+
.ui-toolbar--split:has(.ui-filter-bar) > :last-child { min-height: var(--ui-filter-row-h); }
|
|
548
|
+
}
|
|
549
|
+
|
|
538
550
|
/* -- The band's search at one column --------------------------------------- */
|
|
539
551
|
/* The band holds the trigger, the reader's mark and whatever the page puts between
|
|
540
552
|
them, so the sentence broke mid-word — "Search or run a co…". The search glyph takes
|