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 4ad3c9b commit 1d81810
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 1d81810

Please sign in to comment.