Skip to content

Commit

Permalink
Shadows: Always show reset button If hover is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Dec 19, 2024
1 parent 030c680 commit b41852a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/edit-site/src/components/global-styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,18 @@
top: $grid-unit;
opacity: 0;

&.edit-site-global-styles__shadow-editor__remove-button {
border: none;
}

.edit-site-global-styles__shadow-editor__dropdown-toggle:hover + &,
&:focus,
&:hover {
border: none;
opacity: 1;
}

@media (hover: none) {
// Show reset button on devices that do not support hover.
opacity: 1;
}
}
Expand Down

0 comments on commit b41852a

Please sign in to comment.