Skip to content

fix(material/select): remove focus outline on panel #21005

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
Nov 17, 2020
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/material-experimental/mdc-select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ $mat-select-placeholder-arrow-space: 2 * ($mat-select-arrow-size + $mat-select-a
width: 100%; // Ensures that the panel matches the overlay width.
max-height: $mat-select-panel-max-height;
position: static; // MDC uses `absolute` by default which will throw off our positioning.
outline: 0;

// Note that we include this private mixin, because the public
// one adds a bunch of styles that we aren't using for the menu.
Expand Down
1 change: 1 addition & 0 deletions src/material/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ $mat-select-placeholder-arrow-space: 2 * ($mat-select-arrow-size + $mat-select-a
max-height: $mat-select-panel-max-height;
min-width: 100%; // prevents some animation twitching and test inconsistencies in IE11
border-radius: 4px;
outline: 0;

@include cdk-high-contrast(active, off) {
outline: solid 1px;
Expand Down