From b41852ab28582ee2c5bea17d2bd20fccea1a20b4 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Thu, 19 Dec 2024 16:55:12 +0900 Subject: [PATCH] Shadows: Always show reset button If hover is not supported --- .../edit-site/src/components/global-styles/style.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/style.scss b/packages/edit-site/src/components/global-styles/style.scss index 68cc40c4b6206..99b1c8c92bbd0 100644 --- a/packages/edit-site/src/components/global-styles/style.scss +++ b/packages/edit-site/src/components/global-styles/style.scss @@ -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; } }