File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
packages/pluggableWidgets/switch-web/src Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default function Switch(props: SwitchProps): ReactElement {
38
38
role = "switch"
39
39
aria-checked = { props . isChecked }
40
40
aria-labelledby = { `${ props . id } -label` }
41
- aria-readonly = { ! props . editable }
41
+ aria-disabled = { ! props . editable }
42
42
>
43
43
< div
44
44
className = { classNames ( "widget-switch-btn" , {
Original file line number Diff line number Diff line change 3
3
.widget-switch-btn-wrapper {
4
4
margin-bottom : 8px ;
5
5
6
- & :focus {
7
- outline : 1px solid #0595db ;
8
- }
9
-
10
6
& .disabled {
11
7
cursor : default ;
12
8
}
30
26
}
31
27
}
32
28
}
29
+
30
+ .form-group :focus-within {
31
+ & :has (.widget-switch ) {
32
+ outline : 5px auto -webkit-focus-ring-color ;
33
+ }
34
+ .widget-switch-btn-wrapper :focus {
35
+ outline : none ;
36
+ }
37
+ }
You can’t perform that action at this time.
0 commit comments