@nswds/ui 8.4.0 → 8.5.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nswds/ui",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "UI components for NSW Government digital products, providing reusable design elements and patterns for consistent user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/digitalnsw/nswds-ui#readme",
|
package/src/styles/theme.css
CHANGED
|
@@ -162,7 +162,11 @@
|
|
|
162
162
|
--input-surface: var(--surface-default);
|
|
163
163
|
--input-surface-hover: var(--surface-sunken);
|
|
164
164
|
--input-ring: var(--border-strong);
|
|
165
|
-
|
|
165
|
+
/* The invalid boundary is a non-text control boundary (WCAG 1.4.11, 3:1).
|
|
166
|
+
danger-border, meant for dividers, was 2.32:1 light / 1.72:1 dark on the
|
|
167
|
+
input surface; danger-solid is 6.6:1 / 3.81:1 and clears 3:1 on the page
|
|
168
|
+
and the invalid hover surface too. Also a role token, so it auto-flips. */
|
|
169
|
+
--input-invalid-border: var(--danger-solid);
|
|
166
170
|
--input-invalid-surface-hover: var(--danger-surface);
|
|
167
171
|
--input-invalid-ring: var(--danger-solid);
|
|
168
172
|
/* Data-viz: brand primary ramp (mode-agnostic; not a role token). */
|