@skra/tokens 0.9.0 → 0.9.1
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 +1 -1
- package/skra/utilities.scss +14 -1
package/package.json
CHANGED
package/skra/utilities.scss
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
//
|
|
8
8
|
// Add only utilities that:
|
|
9
9
|
// - are inherently static (no token references), AND
|
|
10
|
-
// - are mandated by a Forge ADR.
|
|
10
|
+
// - are mandated by a Forge ADR or component spec.
|
|
11
11
|
|
|
12
12
|
// ─── Accessible Name Contract (ADR 033) ──────────────────────────────────────
|
|
13
13
|
// Visually-hidden utility for Path 2 (visible text + hidden extension).
|
|
@@ -36,3 +36,16 @@ textarea[skraAutoResize],
|
|
|
36
36
|
input[skraAutoResize] {
|
|
37
37
|
field-sizing: content;
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
// No manual handle once content drives the size (GitHub #12, O-94; spec
|
|
41
|
+
// `component-textarea-spec.md` §Sizing contract). A drag writes an inline `height`
|
|
42
|
+
// on the element (the user agent does it, measured 2026-11-12 on Chromium and
|
|
43
|
+
// Firefox) that outranks `field-sizing`, so one drag silently ends the growth for
|
|
44
|
+
// good. Gated on support: where `field-sizing` does not ship the field cannot
|
|
45
|
+
// grow, and the handle is the user's only way to see more. (The `rows` floor the
|
|
46
|
+
// marker needs is box-dependent, so it lives with the field box in `textarea.scss`.)
|
|
47
|
+
@supports (field-sizing: content) {
|
|
48
|
+
textarea[skraAutoResize] {
|
|
49
|
+
resize: none;
|
|
50
|
+
}
|
|
51
|
+
}
|