@gitbutler/design-core 1.3.2 → 1.3.4
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/styles/reset.css +17 -0
- package/utility/helpers.css +0 -10
package/package.json
CHANGED
package/styles/reset.css
CHANGED
|
@@ -219,6 +219,7 @@
|
|
|
219
219
|
|
|
220
220
|
[role="button"],
|
|
221
221
|
button {
|
|
222
|
+
text-align: left;
|
|
222
223
|
cursor: pointer;
|
|
223
224
|
}
|
|
224
225
|
|
|
@@ -248,4 +249,20 @@
|
|
|
248
249
|
[hidden] {
|
|
249
250
|
display: none;
|
|
250
251
|
}
|
|
252
|
+
|
|
253
|
+
/* Focus outline for keyboard navigation */
|
|
254
|
+
a:focus-visible,
|
|
255
|
+
button:focus-visible,
|
|
256
|
+
input:focus-visible,
|
|
257
|
+
select:focus-visible,
|
|
258
|
+
textarea:focus-visible,
|
|
259
|
+
[tabindex]:focus-visible,
|
|
260
|
+
[role="button"]:focus-visible,
|
|
261
|
+
[role="link"]:focus-visible,
|
|
262
|
+
details:focus-visible,
|
|
263
|
+
summary:focus-visible,
|
|
264
|
+
.focus-visible:focus-visible {
|
|
265
|
+
outline: 2px solid var(--clr-theme-pop-element);
|
|
266
|
+
outline-offset: -2px;
|
|
267
|
+
}
|
|
251
268
|
}
|
package/utility/helpers.css
CHANGED
|
@@ -193,13 +193,3 @@ pre {
|
|
|
193
193
|
color-mix(in srgb, var(--clr-theme-pop-element), transparent, 0.5);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
/* ACCESSIBILITY */
|
|
198
|
-
.focus-state {
|
|
199
|
-
outline: none;
|
|
200
|
-
outline-offset: 2px;
|
|
201
|
-
|
|
202
|
-
&:focus-visible {
|
|
203
|
-
outline: 0.094rem solid var(--focus-color);
|
|
204
|
-
}
|
|
205
|
-
}
|