@react-ui-org/react-ui 0.50.0 → 0.50.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib.development.js +7 -7
- package/dist/lib.js +1 -1
- package/package.json +1 -1
- package/src/lib/components/Button/_tools.scss +1 -6
- package/src/lib/components/ScrollView/ScrollView.scss +1 -0
- package/src/lib/foundation.scss +1 -0
- package/src/lib/styles/generic/_focus.scss +11 -0
- package/src/lib/styles/generic/_forms.scss +0 -12
- package/src/lib/styles/theme/_accessibility.scss +4 -1
- package/src/lib/styles/tools/_reset.scss +0 -1
- package/src/lib/theme.scss +3 -1
package/package.json
CHANGED
@@ -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
|
|
package/src/lib/foundation.scss
CHANGED
@@ -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.
|
package/src/lib/theme.scss
CHANGED
@@ -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:
|
156
|
+
--rui-focus-box-shadow: initial; // 1.
|
155
157
|
|
156
158
|
// Bottom spacings
|
157
159
|
--rui-spacing-bottom-default: var(--rui-spacing-5);
|