@react-ui-org/react-ui 0.50.0 → 0.50.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-ui-org/react-ui",
3
3
  "description": "React UI is a themeable UI library for React apps.",
4
- "version": "0.50.0",
4
+ "version": "0.50.1",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",
@@ -105,10 +105,6 @@
105
105
  opacity: theme.$disabled-opacity;
106
106
  cursor: theme.$disabled-cursor;
107
107
  }
108
-
109
- &:-moz-focusring {
110
- outline: 0;
111
- }
112
108
  }
113
109
 
114
110
  @mixin button-size($size) {
@@ -9,6 +9,7 @@
9
9
 
10
10
  @use "styles/generic/box-sizing";
11
11
  @use "normalize.css/normalize.css";
12
+ @use "styles/generic/focus";
12
13
  @use "styles/generic/forms";
13
14
  @use "styles/generic/reset";
14
15
  @use "styles/generic/shared";
@@ -0,0 +1,11 @@
1
+ @use "../tools/accessibility";
2
+
3
+ // Remove focus outline as we implement custom appearance of focus state. Increase specificity where necessary to
4
+ // override normalize.css.
5
+ :where(button, input, select, textarea):focus {
6
+ outline: none;
7
+ }
8
+
9
+ :is(a, button, input, select, textarea, [type="button"], [type="submit"]) {
10
+ @include accessibility.focus-ring();
11
+ }
@@ -1,15 +1,3 @@
1
- @use "../tools/accessibility";
2
-
3
- // Remove focus outline as we implement custom appearance of focus state. Increase specificity where necessary to
4
- // override normalize.css.
5
- :where(button, input, select, textarea):focus {
6
- outline: none;
7
- }
8
-
9
- :is(a, button, input, select, textarea, [type="button"], [type="submit"]) {
10
- @include accessibility.focus-ring();
11
- }
12
-
13
1
  // Reset Chrome and Firefox behaviour which sets a `min-width: min-content;` on fieldsets.
14
2
  fieldset {
15
3
  min-width: 0;
@@ -19,7 +19,6 @@
19
19
  &:hover,
20
20
  &:focus {
21
21
  text-decoration: none;
22
- outline: none;
23
22
  }
24
23
  }
25
24