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
  • Loading branch information
robinmolen committed Dec 18, 2024
1 parent 738be59 commit 1456106
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openforms/scss/components/admin/_ReactModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@
right: 12px;
padding: 8px;
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 1456106

Please sign in to comment.