@atelier-ui/styles 0.4.4 → 0.4.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.
@@ -107,6 +107,18 @@
107
107
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
108
108
  }
109
109
 
110
+ /* Keyboard focus on danger (WCAG 2.4.7, R-134). The three rules above set
111
+ * box-shadow at the same or higher specificity as .atl-button:focus-visible and
112
+ * come later, so without this the ring was replaced by the inset border. Keep
113
+ * both: the shared ring token, then the inset non-colour cue. The ring's inner
114
+ * band is the surface colour, so it separates the red fill from the outer
115
+ * accent band, which is gated against the surface as the focus-ring pair. */
116
+ .atl-button.variant-danger:focus-visible:not(.is-disabled) {
117
+ box-shadow:
118
+ var(--ui-focus-ring),
119
+ inset 0 0 0 1px rgba(0, 0, 0, 0.18);
120
+ }
121
+
110
122
  /* Sizes — modern target heights (sm 32px / md 40px / lg 48px) */
111
123
  .atl-button.size-sm {
112
124
  padding: calc(
@@ -165,6 +177,12 @@
165
177
  background-color: transparent;
166
178
  }
167
179
 
180
+ /* A loading button stays focusable (ADR-0171), so .is-disabled's
181
+ * box-shadow: none must not remove its focus ring. */
182
+ .atl-button.is-loading:focus-visible {
183
+ box-shadow: var(--ui-focus-ring);
184
+ }
185
+
168
186
  /* Loading spinner */
169
187
  .atl-button > .spinner {
170
188
  display: inline-block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atelier-ui/styles",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Atelier component CSS — class-rooted, token-driven, shared by the Angular, React and Vue libraries",
5
5
  "keywords": [
6
6
  "css",