mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(autocomplete): dividers in list throwing off keyboard navigation (#13224)
Since we count on the options being a particular height, having 1px dividers between them ends up throwing off the keyboard navigation. These changes add an offset to the dividers to avoid the issue. Fixes #13200.
This commit is contained in:
committed by
vivian-hu
parent
6da7d233ec
commit
0886cef8e9
@@ -32,6 +32,12 @@ $mat-autocomplete-panel-border-radius: 4px !default;
|
||||
border-top-right-radius: $mat-autocomplete-panel-border-radius;
|
||||
}
|
||||
|
||||
// We need to offset horizontal dividers by their height, because
|
||||
// they throw off the keyboard navigation inside the panel.
|
||||
.mat-divider-horizontal {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
@include cdk-high-contrast {
|
||||
outline: solid 1px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user