Skip to content

Commit 79200bf

Browse files
t-hamanojuanfra
andauthored
Shadows: Always show reset button If hover is not supported (#68122)
Co-authored-by: t-hamano <[email protected]> Co-authored-by: juanfra <[email protected]>
1 parent 319cab0 commit 79200bf

File tree

1 file changed

+9
-1
lines changed
  • packages/edit-site/src/components/global-styles

1 file changed

+9
-1
lines changed

packages/edit-site/src/components/global-styles/style.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,18 @@
169169
top: $grid-unit;
170170
opacity: 0;
171171

172+
&.edit-site-global-styles__shadow-editor__remove-button {
173+
border: none;
174+
}
175+
172176
.edit-site-global-styles__shadow-editor__dropdown-toggle:hover + &,
173177
&:focus,
174178
&:hover {
175-
border: none;
179+
opacity: 1;
180+
}
181+
182+
@media (hover: none) {
183+
// Show reset button on devices that do not support hover.
176184
opacity: 1;
177185
}
178186
}

0 commit comments

Comments
 (0)