Skip to content

Commit

Permalink
💄 [#4949] Modal close button on dark mode
Browse files Browse the repository at this point in the history
The modal close button changes color based on the light/dark mode of the page.

In addition, focus now increases the button opacity, making it more user-friendly

Backport-of: #4950
  • Loading branch information
robinmolen authored and sergei-maertens committed Dec 18, 2024
1 parent 1190576 commit 613514c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/openforms/scss/components/admin/_ReactModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@
top: 20px;
right: 20px;
cursor: pointer;
color: var(--body-fg);
background: transparent;
border: none;
opacity: 0.5;
line-height: 1;

&:hover {
&:hover,
&:focus {
opacity: 0.8;
}
}
Expand Down

0 comments on commit 613514c

Please sign in to comment.