Skip to content

Commit

Permalink
fix: allow focus rings on pointer coarse devices (#7704) (#7713)
Browse files Browse the repository at this point in the history
Co-authored-by: Fredi Wasström <[email protected]>
  • Loading branch information
vaadin-bot and FrediWa authored Aug 29, 2024
1 parent 7c1d8e6 commit 6a5ff19
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,18 @@ registerStyles(
@media (pointer: coarse) {
[part~='date']:hover:not([part~='selected'])::before,
[part~='focused']:not([part~='selected'])::before {
:host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::before {
display: none;
}
[part~='date']:not(:empty):not([part~='disabled']):active::before {
display: block;
}
[part~='date'][part~='selected']::before {
:host(:not([focus-ring])) [part~='date'][part~='selected']::before {
box-shadow: none;
}
}
/* Disabled */
:host([disabled]) * {
Expand Down

0 comments on commit 6a5ff19

Please sign in to comment.