Skip to content

Commit 5ea6e87

Browse files
committed
add dark mode to composer popup
1 parent 7292d97 commit 5ea6e87

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

email_composer/src/components/popuphoc.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,20 @@
6060

6161
/* THEME
6262
----------------------------- */
63-
@mixin themable($_THEME, $_BACKGROUND_COLOR_POPUP, $_BORDER_COLOR_POPUP){
63+
@mixin themable($_THEME, $_BACKGROUND_COLOR_POPUP, $_BORDER_COLOR_POPUP, $_COLOR_TEXT_POPUP_TITLE, $_COLOR_TEXT_POPUP_PARAGRAPH){
6464
[data-theme^=#{$_THEME}],
6565
[data-theme] [data-theme^=#{$_THEME}] {
6666
.popup-container{
6767
background-color: $_BACKGROUND_COLOR_POPUP;
6868
border-color: $_BORDER_COLOR_POPUP;
69+
color: $_COLOR_TEXT_POPUP_PARAGRAPH;
70+
71+
h1 {
72+
color: $_COLOR_TEXT_POPUP_TITLE
73+
}
6974
}
7075
}
7176
}
7277

73-
@include themable($_THEME_LIGHT, $_BACKGROUND_COLOR_POPUP_LIGHT, $_BORDER_COLOR_POPUP_LIGHT);
74-
@include themable($_THEME_DARK, $_BACKGROUND_COLOR_POPUP_DARK, $_BORDER_COLOR_POPUP_DARK);
78+
@include themable($_THEME_LIGHT, $_BACKGROUND_COLOR_POPUP_LIGHT, $_BORDER_COLOR_POPUP_LIGHT, $_COLOR_TEXT_POPUP_TITLE_LIGHT, $_COLOR_TEXT_POPUP_PARAGRAPH_LIGHT);
79+
@include themable($_THEME_DARK, $_BACKGROUND_COLOR_POPUP_DARK, $_BORDER_COLOR_POPUP_DARK, $_COLOR_TEXT_POPUP_TITLE_DARK, $_COLOR_TEXT_POPUP_PARAGRAPH_DARK);

0 commit comments

Comments
 (0)