@klodd/ds 3.5.4 → 3.5.5
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/SKILL.md +5 -0
- package/css/components/chip.css +20 -0
- package/css/components/inline-edit.css +9 -0
- package/css/components/input.css +12 -0
- package/css/components/list-row.css +5 -0
- package/css/components/nav.css +11 -1
- package/css/components/swipe-stack.css +10 -0
- package/css/components/tab-bar.css +5 -0
- package/package.json +1 -1
- package/references/03-quality-bar.md +7 -0
package/SKILL.md
CHANGED
|
@@ -108,4 +108,9 @@ v3.5.3 lagger till .heading-utan-N (17px) for dialog-titlar och sheet-rubriker.
|
|
|
108
108
|
v3.5.4 (Sprint D-3) introducerar --fs-16 token (16px) for iOS-anti-zoom
|
|
109
109
|
pa inputs och applicerar pa inline-edit__input. Token ar dokumenterad
|
|
110
110
|
som BARA for input-element - vanlig text anvander fortfarande 15 eller 17.
|
|
111
|
+
v3.5.5 (Sprint E) konsoliderar :focus-visible over 7 komponenter (chip,
|
|
112
|
+
list-row, tab-bar, nav, swipe-stack, inline-edit) - 11 nya selectorer
|
|
113
|
+
fick outline 2px solid var(--border-focus) med outline-offset 2px. Plus
|
|
114
|
+
.tab outline-offset normaliserad 1px->2px. input.css och .inline-edit__input
|
|
115
|
+
ar dokumenterade undantag som behaller :focus (text-input-konvention).
|
|
111
116
|
Sprint C fas 2 template-migration pagaar.)
|
package/css/components/chip.css
CHANGED
|
@@ -101,6 +101,11 @@
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
.chip-list__delete:focus-visible {
|
|
105
|
+
outline: 2px solid var(--border-focus);
|
|
106
|
+
outline-offset: 2px;
|
|
107
|
+
}
|
|
108
|
+
|
|
104
109
|
.chip-list__add {
|
|
105
110
|
background: transparent;
|
|
106
111
|
border-style: dashed;
|
|
@@ -120,6 +125,11 @@
|
|
|
120
125
|
}
|
|
121
126
|
}
|
|
122
127
|
|
|
128
|
+
.chip-list__add:focus-visible {
|
|
129
|
+
outline: 2px solid var(--border-focus);
|
|
130
|
+
outline-offset: 2px;
|
|
131
|
+
}
|
|
132
|
+
|
|
123
133
|
|
|
124
134
|
/* ================================================================
|
|
125
135
|
==== BRAND-PILL
|
|
@@ -245,6 +255,11 @@
|
|
|
245
255
|
.install-chip__install:hover { background: var(--accent-10); }
|
|
246
256
|
}
|
|
247
257
|
|
|
258
|
+
.install-chip__install:focus-visible {
|
|
259
|
+
outline: 2px solid var(--border-focus);
|
|
260
|
+
outline-offset: 2px;
|
|
261
|
+
}
|
|
262
|
+
|
|
248
263
|
.install-chip__dismiss {
|
|
249
264
|
background: transparent;
|
|
250
265
|
border: none;
|
|
@@ -261,6 +276,11 @@
|
|
|
261
276
|
.install-chip__dismiss:hover { color: var(--text-default); }
|
|
262
277
|
}
|
|
263
278
|
|
|
279
|
+
.install-chip__dismiss:focus-visible {
|
|
280
|
+
outline: 2px solid var(--border-focus);
|
|
281
|
+
outline-offset: 2px;
|
|
282
|
+
}
|
|
283
|
+
|
|
264
284
|
@keyframes install-chip-up {
|
|
265
285
|
from { transform: translateY(calc(100% + 100px)); opacity: 0; }
|
|
266
286
|
to { transform: translateY(0); opacity: 1; }
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
.inline-edit__btn:focus-visible {
|
|
45
|
+
outline: 2px solid var(--border-focus);
|
|
46
|
+
outline-offset: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
.inline-edit__form {
|
|
45
50
|
display: inline-flex;
|
|
46
51
|
align-items: center;
|
|
@@ -68,6 +73,10 @@
|
|
|
68
73
|
outline: none;
|
|
69
74
|
}
|
|
70
75
|
|
|
76
|
+
/* :focus (INTE :focus-visible) - text-input-undantag analogt med
|
|
77
|
+
input.css. Anvandare klickar/touchar inputen och forvantar sig
|
|
78
|
+
visuell feedback oavsett input-method. Border + box-shadow ar
|
|
79
|
+
integrerad i input-utseendet. */
|
|
71
80
|
.inline-edit__input:focus {
|
|
72
81
|
border-color: var(--accent-9);
|
|
73
82
|
box-shadow: 0 0 0 3px var(--accent-a3);
|
package/css/components/input.css
CHANGED
|
@@ -61,6 +61,18 @@
|
|
|
61
61
|
/* ================================================================
|
|
62
62
|
==== STATES
|
|
63
63
|
================================================================ */
|
|
64
|
+
|
|
65
|
+
/* Inputs anvander :focus (INTE :focus-visible) som dokumenterat
|
|
66
|
+
undantag fran paketets generella focus-visible-monster.
|
|
67
|
+
|
|
68
|
+
Skal: text-inputs ar specialfall - anvandare klickar/touchar dem
|
|
69
|
+
och forvantar sig visuell feedback oavsett input-method (mus eller
|
|
70
|
+
tangentbord). Att gomma fokus-ring vid mus-klick (vilket
|
|
71
|
+
:focus-visible skulle gora) kan forvirra anvandare om vilket falt
|
|
72
|
+
som ar aktivt. Konvention foljer Radix UI, MUI, shadcn etc.
|
|
73
|
+
|
|
74
|
+
Fokus-feedback ar border-color + box-shadow ring (inte outline) -
|
|
75
|
+
integrerad i input-utseendet snarare an "added on top". */
|
|
64
76
|
.input:focus,
|
|
65
77
|
.textarea:focus,
|
|
66
78
|
.select:focus {
|
package/css/components/nav.css
CHANGED
|
@@ -56,6 +56,11 @@
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
.bottom-nav-item:focus-visible {
|
|
60
|
+
outline: 2px solid var(--border-focus);
|
|
61
|
+
outline-offset: 2px;
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
.bottom-nav-item.active {
|
|
60
65
|
color: var(--accent-text);
|
|
61
66
|
}
|
|
@@ -141,6 +146,11 @@
|
|
|
141
146
|
}
|
|
142
147
|
}
|
|
143
148
|
|
|
149
|
+
.topbar-action:focus-visible {
|
|
150
|
+
outline: 2px solid var(--border-focus);
|
|
151
|
+
outline-offset: 2px;
|
|
152
|
+
}
|
|
153
|
+
|
|
144
154
|
|
|
145
155
|
/* ================================================================
|
|
146
156
|
==== TAB-BAR (inline tabs i panel)
|
|
@@ -188,5 +198,5 @@
|
|
|
188
198
|
|
|
189
199
|
.tab:focus-visible {
|
|
190
200
|
outline: 2px solid var(--border-focus);
|
|
191
|
-
outline-offset:
|
|
201
|
+
outline-offset: 2px;
|
|
192
202
|
}
|
|
@@ -47,6 +47,11 @@
|
|
|
47
47
|
|
|
48
48
|
.swipe-card:active { cursor: grabbing; }
|
|
49
49
|
|
|
50
|
+
.swipe-card:focus-visible {
|
|
51
|
+
outline: 2px solid var(--border-focus);
|
|
52
|
+
outline-offset: 2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
50
55
|
.swipe-card--back {
|
|
51
56
|
transform: scale(0.96);
|
|
52
57
|
opacity: 0.85;
|
|
@@ -154,6 +159,11 @@
|
|
|
154
159
|
transition: transform var(--press-in-duration) var(--press-in-easing);
|
|
155
160
|
}
|
|
156
161
|
|
|
162
|
+
.swipe-action-btn:focus-visible {
|
|
163
|
+
outline: 2px solid var(--border-focus);
|
|
164
|
+
outline-offset: 2px;
|
|
165
|
+
}
|
|
166
|
+
|
|
157
167
|
.swipe-action-btn--save { color: var(--positive); }
|
|
158
168
|
.swipe-action-btn--dismiss { color: var(--negative); }
|
|
159
169
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klodd/ds",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5",
|
|
4
4
|
"description": "Klodd Design System - shared tokens, typography, components and JS for Jubb, Ekonom, and future apps. v3.5.3 (2026-05-09): tillagg .heading (17px medium tight) i base/typography.css for dialog-titlar och sheet-rubriker. Tackar luckan mellan .heading-2 (18px) och .heading-3 (15px) - matchar Ekonoms gamla .heading-class.",
|
|
5
5
|
"main": "css/index.css",
|
|
6
6
|
"bin": {
|
|
@@ -62,6 +62,13 @@ Lista over absoluta krav som inte ska brytas. Varje krav har konkret
|
|
|
62
62
|
- ALDRIG `rgba(0, 0, 0, 0.4)` - anvand `color-mix(in oklch, ...)` eller
|
|
63
63
|
semantic alpha-token
|
|
64
64
|
|
|
65
|
+
**Scope:**
|
|
66
|
+
Galler komponenter i `components/*.css` och per-app domain-filer
|
|
67
|
+
(`X-domain.css`, `X.css`). Galler INTE `apps/X.css` - den filen ar
|
|
68
|
+
per definition det lager som haller app-specifika ravarden och
|
|
69
|
+
far referera primitives eller explicita hex-varden for app-karaktar
|
|
70
|
+
som saknar Radix-ekvivalent.
|
|
71
|
+
|
|
65
72
|
**Varfor:**
|
|
66
73
|
- Single source of truth: andring i 00-primitives.css landar omedelbart
|
|
67
74
|
i alla komponenter
|