Skip to content

Commit 4569a81

Browse files
committed
refactor: fix form field selectors
1 parent b8e1f08 commit 4569a81

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/material/form-field/_mdc-text-field-structure.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,35 +228,35 @@ $token-slots: m2-form-field.get-token-slots();
228228
display: none;
229229
}
230230

231-
mdc-text-field--filled:not(.mdc-text-field--disabled) & {
231+
.mdc-text-field--filled:not(.mdc-text-field--disabled) & {
232232
color: token-utils.slot(filled-label-text-color);
233233
}
234234

235-
mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused & {
235+
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused & {
236236
color: token-utils.slot(filled-focus-label-text-color);
237237
}
238238

239-
mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover & {
239+
.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover & {
240240
color: token-utils.slot(filled-hover-label-text-color);
241241
}
242242

243-
mdc-text-field--filled.mdc-text-field--disabled & {
243+
.mdc-text-field--filled.mdc-text-field--disabled & {
244244
color: token-utils.slot(filled-disabled-label-text-color);
245245
}
246246

247-
mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid & {
247+
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid & {
248248
color: token-utils.slot(filled-error-label-text-color);
249249
}
250250

251-
mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused & {
251+
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused & {
252252
color: token-utils.slot(filled-error-focus-label-text-color);
253253
}
254254

255-
mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover & {
255+
.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover & {
256256
color: token-utils.slot(filled-error-hover-label-text-color);
257257
}
258258

259-
mdc-text-field--filled & {
259+
.mdc-text-field--filled & {
260260
font-family: token-utils.slot(filled-label-text-font);
261261
font-size: token-utils.slot(filled-label-text-size);
262262
font-weight: token-utils.slot(filled-label-text-weight);

0 commit comments

Comments
 (0)