File tree Expand file tree Collapse file tree 8 files changed +37
-11
lines changed Expand file tree Collapse file tree 8 files changed +37
-11
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ governing permissions and limitations under the License.
96
96
max-block-size : 100% ;
97
97
flex-shrink : 0 ;
98
98
}
99
-
100
99
}
101
100
102
101
%spectrum- Butto nWithFocusRing {
@@ -111,7 +110,7 @@ governing permissions and limitations under the License.
111
110
top : 0 ;
112
111
margin : calc (var (--spectrum-alias-focus-ring-gap ) * -1 );
113
112
114
- transition : box-shadow var (--spectrum-global-animation-duration-100 ) ease-out,
113
+ transition : opacity var (--spectrum-global-animation-duration-100 ) ease-out,
115
114
margin var (--spectrum-global-animation-duration-100 ) ease-out;
116
115
}
117
116
Original file line number Diff line number Diff line change @@ -17,10 +17,14 @@ governing permissions and limitations under the License.
17
17
18
18
.spectrum-LogicButton ,
19
19
.spectrum-Button {
20
+ & : after {
21
+ box-shadow : 0 0 0 var (--spectrum-button-primary-focus-ring-size-key-focus ) var (--spectrum-button-primary-focus-ring-color-key-focus );
22
+ opacity : 0 ;
23
+ }
20
24
& : focus-ring ,
21
25
& .is-focused {
22
26
& : after {
23
- box-shadow : 0 0 0 var ( --spectrum-button-primary-focus-ring-size-key-focus ) var ( --spectrum-button-primary-focus-ring-color-key-focus ) ;
27
+ opacity : 1 ;
24
28
}
25
29
}
26
30
}
Original file line number Diff line number Diff line change @@ -160,9 +160,9 @@ governing permissions and limitations under the License.
160
160
top : 0 ;
161
161
margin : var (--spectrum-alias-focus-ring-gap );
162
162
163
- transition : box-shadow var (--spectrum-global-animation-duration-100 ) ease-out,
163
+ transition : opacity var (--spectrum-global-animation-duration-100 ) ease-out,
164
164
margin var (--spectrum-global-animation-duration-100 ) ease-out;
165
-
165
+
166
166
/* force ff to render on the pixel grid */
167
167
transform : translate (0 , 0 );
168
168
}
Original file line number Diff line number Diff line change @@ -103,12 +103,18 @@ governing permissions and limitations under the License.
103
103
104
104
/* Focus */
105
105
.spectrum-Checkbox-input {
106
+ + .spectrum-Checkbox-box {
107
+ & : after {
108
+ box-shadow : 0 0 0 var (--spectrum-checkbox-focus-ring-size-key-focus ) var (--spectrum-checkbox-focus-ring-color-key-focus );
109
+ opacity : 0 ;
110
+ }
111
+ }
106
112
& : focus-ring + .spectrum-Checkbox-box {
107
113
& : before {
108
114
border-color : var (--spectrum-checkbox-box-border-color-key-focus );
109
115
}
110
116
& : after {
111
- box-shadow : 0 0 0 var ( --spectrum-checkbox-focus-ring-size-key-focus ) var ( --spectrum-checkbox-focus-ring-color-key-focus ) ;
117
+ opacity : 1 ;
112
118
}
113
119
}
114
120
.spectrum-Checkbox .is-indeterminate & ,
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ governing permissions and limitations under the License.
141
141
top : 0 ;
142
142
margin : var (--spectrum-alias-focus-ring-gap );
143
143
144
- transition : box-shadow var (--spectrum-global-animation-duration-100 ) ease-out,
144
+ transition : opacity var (--spectrum-global-animation-duration-100 ) ease-out,
145
145
margin var (--spectrum-global-animation-duration-100 ) ease-out;
146
146
}
147
147
}
Original file line number Diff line number Diff line change @@ -146,14 +146,23 @@ governing permissions and limitations under the License.
146
146
/* Focus Overrides all */
147
147
.spectrum-Radio ,
148
148
.spectrum-Radio--quiet {
149
+ & .spectrum-Radio-input ,
150
+ & : hover .spectrum-Radio-input {
151
+ & + .spectrum-Radio-button {
152
+ & : after {
153
+ box-shadow : 0 0 0 var (--spectrum-radio-focus-ring-size-key-focus ) var (--spectrum-radio-focus-ring-color-key-focus );
154
+ opacity : 0 ;
155
+ }
156
+ }
157
+ }
149
158
& .spectrum-Radio-input : focus-ring ,
150
159
& : hover .spectrum-Radio-input : focus-ring {
151
160
& + .spectrum-Radio-button {
152
161
& : before {
153
162
border-color : var (--spectrum-radio-circle-border-color-key-focus );
154
163
}
155
164
& : after {
156
- box-shadow : 0 0 0 var ( --spectrum-radio-focus-ring-size-key-focus ) var ( --spectrum-radio-focus-ring-color-key-focus ) ;
165
+ opacity : 1 ;
157
166
}
158
167
}
159
168
& : checked + .spectrum-Radio-button {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ governing permissions and limitations under the License.
16
16
/* Hardcoded for wrapping study.
17
17
Will be a DNA token in https://jira.corp.adobe.com/browse/SDS-4466 */
18
18
--spectrum-switch-label-margin-top : var (--spectrum-global-dimension-size-65 );
19
-
19
+
20
20
/* Fix for inconsistent line-height between browsers that would push the label 1px below the intended baseline */
21
21
/* more info: https://stackoverflow.com/questions/47700568/css-fonts-render-differently-in-firefox-and-chrome */
22
22
--spectrum-switch-label-line-height : 1.49 ;
@@ -148,7 +148,7 @@ governing permissions and limitations under the License.
148
148
inset-block-start : 0 ;
149
149
margin : 0 ;
150
150
151
- transition : box-shadow var (--spectrum-global-animation-duration-100 ) ease-out,
151
+ transition : opacity var (--spectrum-global-animation-duration-100 ) ease-out,
152
152
margin var (--spectrum-global-animation-duration-100 ) ease-out;
153
153
}
154
154
}
Original file line number Diff line number Diff line change @@ -128,10 +128,18 @@ governing permissions and limitations under the License.
128
128
/* Key Focus */
129
129
.spectrum-ToggleSwitch ,
130
130
.spectrum-ToggleSwitch : hover {
131
- .spectrum-ToggleSwitch-input : focus-ring {
131
+ .spectrum-ToggleSwitch-input {
132
132
& + .spectrum-ToggleSwitch-switch {
133
133
& : after {
134
134
box-shadow : 0 0 0 var (--spectrum-switch-focus-ring-size-key-focus ) var (--spectrum-switch-focus-ring-color-key-focus );
135
+ opacity : 0 ;
136
+ }
137
+ }
138
+ }
139
+ .spectrum-ToggleSwitch-input : focus-ring {
140
+ & + .spectrum-ToggleSwitch-switch {
141
+ & : after {
142
+ opacity : 1 ;
135
143
}
136
144
& : before {
137
145
border-color : var (--spectrum-switch-emphasized-handle-border-color-key-focus );
You can’t perform that action at this time.
0 commit comments