memorial-ui-component-library 1.0.10-beta.13 → 1.0.10-beta.15
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/dist/memorial-ui-component-library.common.js +53 -27
- package/dist/memorial-ui-component-library.common.js.map +1 -1
- package/dist/memorial-ui-component-library.css +1 -1
- package/dist/memorial-ui-component-library.umd.js +53 -27
- package/dist/memorial-ui-component-library.umd.js.map +1 -1
- package/dist/memorial-ui-component-library.umd.min.js +3 -3
- package/dist/memorial-ui-component-library.umd.min.js.map +1 -1
- package/dist/report.html +2 -2
- package/package.json +1 -1
- package/src/assets/scss/_focus.scss +27 -43
package/package.json
CHANGED
|
@@ -8,56 +8,40 @@
|
|
|
8
8
|
--sd-focus-offset-inset: 2px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
//
|
|
12
|
-
:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
&::before {
|
|
16
|
-
display: none !important;
|
|
11
|
+
// Only show focus when using keyboard navigation
|
|
12
|
+
body:not(.user-is-tabbing) {
|
|
13
|
+
*:focus {
|
|
14
|
+
outline: none !important;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
:focus-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
[role="
|
|
35
|
-
[
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
[role="listbox"]:focus-within,
|
|
43
|
-
[role="menu"]:focus-within {
|
|
44
|
-
outline: var(--sd-focus-width-secondary) solid var(--sd-focus-color);
|
|
45
|
-
outline-offset: var(--sd-focus-offset-secondary);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Focus styles for list items
|
|
49
|
-
[role="option"].focus,
|
|
50
|
-
[role="menuitem"].focus,
|
|
51
|
-
[role="option"]:focus-visible,
|
|
52
|
-
[role="menuitem"]:focus-visible {
|
|
53
|
-
outline: var(--sd-focus-width) solid var(--sd-focus-color);
|
|
54
|
-
outline-offset: var(--sd-focus-offset-inset);
|
|
55
|
-
position: relative;
|
|
18
|
+
// Show focus styles when tabbing
|
|
19
|
+
body.user-is-tabbing {
|
|
20
|
+
*:focus {
|
|
21
|
+
outline: var(--sd-focus-width) solid var(--sd-focus-color) !important;
|
|
22
|
+
outline-offset: var(--sd-focus-offset) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[role="combobox"]:focus:focus-within,
|
|
26
|
+
[role="listbox"]:focus:focus-within,
|
|
27
|
+
[role="menu"]:focus:focus-within {
|
|
28
|
+
outline: var(--sd-focus-width-secondary) solid var(--sd-focus-color) !important;
|
|
29
|
+
outline-offset: var(--sd-focus-offset-secondary) !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[role="option"].focus,
|
|
33
|
+
[role="menuitem"].focus,
|
|
34
|
+
[role="option"]:focus,
|
|
35
|
+
[role="menuitem"]:focus {
|
|
36
|
+
outline: var(--sd-focus-width) solid var(--sd-focus-color) !important;
|
|
37
|
+
outline-offset: var(--sd-focus-offset-inset) !important;
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
56
40
|
}
|
|
57
41
|
|
|
58
42
|
// Support for high contrast mode
|
|
59
43
|
@media (forced-colors: active) {
|
|
60
|
-
:focus
|
|
44
|
+
:focus {
|
|
61
45
|
outline: var(--sd-focus-width) solid HighlightText !important;
|
|
62
46
|
outline-offset: var(--sd-focus-offset) !important;
|
|
63
47
|
}
|