Skip to content

Commit

Permalink
Shadows: Always show reset button If hover is not supported (#68122)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: juanfra <juanfra@git.wordpress.org>
  • Loading branch information
3 people authored Dec 19, 2024
1 parent 319cab0 commit 79200bf
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

1 comment on commit 79200bf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 79200bf.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12410334530
📝 Reported issues:

Please sign in to comment.