Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

modals: Change modal header colors as per the redesign specs.

Sayam Samal7d30e9ae3f1f
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 764cfb973ca..4f1fb8f58b0 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -853,15 +853,22 @@
hsl(0deg 0% 100% / 90%),
hsl(212deg 28% 8% / 75%)
);
+ --color-modal-heading-text: light-dark(
+ hsl(0deg 0% 15%),
+ color-mix(in oklch, hsl(0deg 0% 100%) 85%, transparent)
+ );
--color-background-modal: light-dark(hsl(0deg 0% 93%), hsl(0deg 0% 14%));
- --color-background-modal-bar: light-dark(#f5f5f5, #333);
+ --color-background-modal-bar: light-dark(
+ hsl(0deg 0% 96%),
+ hsl(0deg 0% 20%)
+ );
--color-border-modal: light-dark(
hsl(0deg 0% 55%),
color-mix(in oklch, hsl(0deg 0% 100%) 15%, transparent)
);
--color-border-modal-bar: light-dark(
- color-mix(in srgb, #c2c2c2 80%, transparent),
- color-mix(in srgb, #fff 5%, transparent)
+ hsl(0deg 0% 76%),
+ color-mix(in oklch, hsl(0deg 0% 100%) 12%, transparent)
);
--color-border-modal-footer: light-dark(
hsl(0deg 0% 87%),
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 7da9db799ef..2f4e402c750 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -43,6 +43,11 @@
"heading close-button" 1.8em "heading ." auto / minmax(0, 1fr)
1.8125em;
column-gap: 4px;
+ background-color: var(--color-background-modal-bar);
+
+ &:has(+ .modal__content) {
+ border-bottom: 1px solid var(--color-border-modal-bar);
+ }
}
.modal__footer {
@@ -62,6 +67,7 @@
line-height: 1.25;
overflow: hidden;
overflow-wrap: break-word;
+ color: var(--color-modal-heading-text);
.channel-privacy-type-icon {
/* This pushes back on suspect styles