Skip to content

Commit 281c80d

Browse files
authored
fix(richtext-lexical): hover style of the button to remove blocks (#8154)
## Description Fix #8045 Before: hover with same color as background, as in the issue description. After (light): ![Screenshot 2024-09-10 at 9 36 21 AM](https://github.com/user-attachments/assets/260dbc69-a583-42f6-9b25-a81b8d8d4f70) After (dark): ![Screenshot 2024-09-10 at 9 35 34 AM](https://github.com/user-attachments/assets/3606ee3c-24d6-43dd-8a0e-11d12e1fe779) - [x] I have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist: - [x] Existing test suite passes locally with my changes - [x] I have made corresponding changes to the documentation
2 parents 12a30a0 + 67e1d6a commit 281c80d

File tree

1 file changed

+3
-0
lines changed
  • packages/richtext-lexical/src/features/blocks/client/component

1 file changed

+3
-0
lines changed

packages/richtext-lexical/src/features/blocks/client/component/index.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181

8282
&__removeButton.btn {
8383
margin: 0;
84+
&:hover {
85+
background-color: var(--theme-elevation-200);
86+
}
8487
}
8588

8689
&__block-header {

0 commit comments

Comments
 (0)