Skip to content

Commit

Permalink
fix(toolbar): make suggestion diffs theme-friendly (#9322)
Browse files Browse the repository at this point in the history
* Make backgrounds of ins/del elements in flaws block theme-friendly

* Re-add accidentally removed variables
  • Loading branch information
queengooborg committed Apr 4, 2024
1 parent 732b836 commit d47c135
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/document/toolbar/flaws.scss
Expand Up @@ -32,12 +32,11 @@
}

ins {
background-color: #d4fcbc;
background-color: var(--background-ins);
}

del {
background-color: #fbb;
text-decoration: none;
background-color: var(--background-del);
}

.explanation-notes li {
Expand Down
4 changes: 4 additions & 0 deletions client/src/ui/base/_themes.scss
Expand Up @@ -40,6 +40,8 @@
$mdn-theme-light-icon-success,
$alpha: -0.9
)};
--background-del: #{color.adjust($mdn-theme-light-icon-critical, $alpha: -0.5)};
--background-ins: #{color.adjust($mdn-theme-light-icon-success, $alpha: -0.5)};

--border-primary: #{$mdn-theme-light-border-primary};
--border-secondary: #{$mdn-theme-light-border-secondary};
Expand Down Expand Up @@ -316,6 +318,8 @@
$mdn-theme-light-icon-success,
$alpha: -0.9
)};
--background-del: #{color.adjust($mdn-theme-light-icon-critical, $alpha: -0.5)};
--background-ins: #{color.adjust($mdn-theme-light-icon-success, $alpha: -0.5)};

--border-primary: #{$mdn-theme-dark-border-primary};
--border-secondary: #{$mdn-theme-dark-border-secondary};
Expand Down

0 comments on commit d47c135

Please sign in to comment.