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

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 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.2",
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) {
@@ -127,8 +123,7 @@
127
123
  @include _get-themeable-properties($priority, $color, disabled);
128
124
  }
129
125
 
130
- &:not(:disabled):hover,
131
- &:not(:disabled):focus {
126
+ &:not(:disabled):hover {
132
127
  @include _get-themeable-properties($priority, $color, hover);
133
128
  }
134
129
 
@@ -186,6 +186,7 @@ $_arrow-outer-spacing: spacing.of(4);
186
186
  .isRootHorizontal .content {
187
187
  display: inline-flex; // 4.
188
188
  min-width: 100%;
189
+ vertical-align: top;
189
190
  }
190
191
 
191
192
  .isRootHorizontal .scrollingShadows::before,
@@ -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;
@@ -1,4 +1,7 @@
1
+ // 1. Make it possible to keep the original box shadow of the component: if `--rui-focus-box-shadow` is set to
2
+ // `initial`, `revert` or `unset`, `--rui-local-box-shadow` is used.
3
+
1
4
  $tap-target-size: var(--rui-tap-target-size);
2
5
  $focus-outline: var(--rui-focus-outline);
3
6
  $focus-outline-offset: var(--rui-focus-outline-offset);
4
- $focus-box-shadow: var(--rui-focus-box-shadow);
7
+ $focus-box-shadow: var(--rui-focus-box-shadow, var(--rui-local-box-shadow, initial)); // 1.
@@ -19,7 +19,6 @@
19
19
  &:hover,
20
20
  &:focus {
21
21
  text-decoration: none;
22
- outline: none;
23
22
  }
24
23
  }
25
24
 
@@ -138,6 +138,8 @@
138
138
  //
139
139
  // Shared Settings
140
140
  // ===============
141
+ //
142
+ // 1. Use `initial`, `revert` or `unset` to keep the original box shadow of the component.
141
143
 
142
144
  // Borders
143
145
  --rui-border-width: 1px;
@@ -151,7 +153,7 @@
151
153
  --rui-tap-target-size: 10mm;
152
154
  --rui-focus-outline: 0.2em solid var(--rui-color-active-focus);
153
155
  --rui-focus-outline-offset: 1px;
154
- --rui-focus-box-shadow: none;
156
+ --rui-focus-box-shadow: initial; // 1.
155
157
 
156
158
  // Bottom spacings
157
159
  --rui-spacing-bottom-default: var(--rui-spacing-5);