@microsoft/atlas-css 3.14.0 → 3.16.0
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
package/src/atomics/index.scss
CHANGED
|
@@ -17,19 +17,17 @@ $radio-spacing: 0.5em !default;
|
|
|
17
17
|
height: $radio-dot-size;
|
|
18
18
|
margin: auto;
|
|
19
19
|
border-radius: $border-radius-rounded;
|
|
20
|
-
background-color: $body-background;
|
|
21
20
|
content: '';
|
|
22
21
|
overflow: hidden;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
@mixin radio-dot-checked {
|
|
26
25
|
background: $radio-dot-checked-color;
|
|
26
|
+
box-shadow: inset 0 0 0 0.25em $body-background;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.radio {
|
|
30
30
|
display: inline-flex;
|
|
31
|
-
position: relative;
|
|
32
|
-
align-items: flex-start;
|
|
33
31
|
line-height: 1.25;
|
|
34
32
|
cursor: pointer;
|
|
35
33
|
|
|
@@ -42,11 +40,18 @@ $radio-spacing: 0.5em !default;
|
|
|
42
40
|
height: $radio-circle-size;
|
|
43
41
|
border: $radio-border-width solid $radio-border-color;
|
|
44
42
|
border-radius: $border-radius-rounded;
|
|
43
|
+
background-color: $body-background;
|
|
45
44
|
color: $radio-dot-color;
|
|
45
|
+
cursor: pointer;
|
|
46
46
|
appearance: none;
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
@include forced-colors {
|
|
49
|
+
border-color: CanvasText !important;
|
|
50
|
+
background-color: unset !important;
|
|
51
|
+
|
|
52
|
+
&::before {
|
|
53
|
+
@include radio-dot;
|
|
54
|
+
}
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
|
|
@@ -54,18 +59,7 @@ $radio-spacing: 0.5em !default;
|
|
|
54
59
|
margin: 0 $radio-spacing;
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
/* stylelint-disable selector-max-specificity */
|
|
58
|
-
|
|
59
|
-
&.is-hovered,
|
|
60
|
-
&:hover:not([disabled]) {
|
|
61
|
-
.radio-dot:not(:checked)::before {
|
|
62
|
-
background: $radio-dot-hover-unchecked-color;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* stylelint-enable */
|
|
67
|
-
|
|
68
|
-
/* stylelint-disable selector-no-qualifying-type */
|
|
62
|
+
/* stylelint-disable selector-max-specificity, selector-no-qualifying-type, max-nesting-depth */
|
|
69
63
|
|
|
70
64
|
input {
|
|
71
65
|
&.is-focused {
|
|
@@ -80,10 +74,39 @@ $radio-spacing: 0.5em !default;
|
|
|
80
74
|
input.is-checked,
|
|
81
75
|
input:checked,
|
|
82
76
|
.radio-dot.is-checked {
|
|
77
|
+
@include radio-dot-checked;
|
|
78
|
+
|
|
83
79
|
animation: $radio-animation $radio-duration $radio-timing-function 1;
|
|
84
80
|
border-color: $radio-dot-checked-color;
|
|
85
81
|
|
|
86
|
-
|
|
82
|
+
@include forced-colors {
|
|
83
|
+
border-color: CanvasText !important;
|
|
84
|
+
background-color: unset !important;
|
|
85
|
+
box-shadow: none !important;
|
|
86
|
+
|
|
87
|
+
&::before {
|
|
88
|
+
background-color: CanvasText !important;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.is-hovered,
|
|
94
|
+
&:hover:not([disabled]) {
|
|
95
|
+
.radio-dot:not(:checked) {
|
|
96
|
+
background: $radio-dot-hover-unchecked-color;
|
|
97
|
+
box-shadow: inset 0 0 0 0.25em $body-background;
|
|
98
|
+
|
|
99
|
+
@include forced-colors {
|
|
100
|
+
background-color: unset !important;
|
|
101
|
+
box-shadow: none !important;
|
|
102
|
+
|
|
103
|
+
&::before {
|
|
104
|
+
background-color: CanvasText !important;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.radio-dot.is-checked {
|
|
87
110
|
@include radio-dot-checked;
|
|
88
111
|
}
|
|
89
112
|
}
|
|
@@ -4,3 +4,18 @@ details,
|
|
|
4
4
|
details > * {
|
|
5
5
|
box-sizing: border-box !important;
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
:where(html *),
|
|
9
|
+
:where(html a),
|
|
10
|
+
:where(html li) {
|
|
11
|
+
// include a,li {} to override css reset/normalize; this is causing .focus-visible color issues
|
|
12
|
+
outline-color: inherit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where(a) {
|
|
16
|
+
color: $hyperlink;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(a:visited) {
|
|
20
|
+
color: $visited;
|
|
21
|
+
}
|