Skip to content

fix(focus indicators): Improve styles that determine when focus indicators should render on selection controls. #19546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/material/core/focus-indicators/_focus-indicators.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
// Render the focus indicator on focus. Defining a pseudo element's
// content will cause it to render.

// For checkboxes, radios, and slide toggles, render the focus indicator
// when the class .cdk-focused is present.
.cdk-focused.mat-checkbox .mat-focus-indicator::before,
.cdk-focused.mat-radio-button .mat-focus-indicator::before,
.cdk-focused.mat-slide-toggle .mat-focus-indicator::before,
// Checkboxes, radios, and slide toggles render focus indicators when the
// associated visually-hidden input is focused.
.mat-checkbox-input:focus ~ .mat-focus-indicator::before,
.mat-radio-input:focus ~ .mat-focus-indicator::before,
.mat-slide-toggle-input:focus ~ .mat-slide-toggle-thumb-container .mat-focus-indicator::before,

// For options, render the focus indicator when the class .mat-active
// is present.
Expand Down