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: Fix styling of non-editable text input fields.

Sahil Batra8d91b7add6b0
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 677419254f3..5f435c8bc11 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -427,6 +427,7 @@
--opacity-left-sidebar-muted-mentions: 0.3;
--opacity-right-sidebar-subheading: 0.65;
--opacity-right-sidebar-subheading-hover: 0.9;
+ --opacity-readonly-modal-input: 0.7;
/*
Message box elements and values.
@@ -843,6 +844,10 @@
hsl(240deg 100% 50% / 7%),
hsl(240deg 100% 75% / 20%)
);
+ --background-color-readonly-modal-input: light-dark(
+ hsl(240deg 7% 93%),
+ hsl(240deg 7% 17%)
+ );
--color-background-pill-container-without-placeholder: light-dark(
hsl(0deg 0% 100%),
hsl(0deg 0% 0% / 20%)
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index d03b4c5d7f9..cfa2016b61c 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -51,8 +51,8 @@
option:disabled,
select:disabled,
textarea:disabled,
- input:disabled,
- input:not([type="radio"]):read-only,
+ input:disabled:not(.modal_text_input),
+ input:not([type="radio"], .modal_text_input):read-only,
textarea:read-only,
#organization-permissions .dropdown-widget-button:disabled,
#organization-settings .dropdown-widget-button:disabled {
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 00acd6b498a..90df9e9f4ff 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -490,6 +490,11 @@
}
}
+.modal__container .modal_text_input:read-only {
+ background-color: var(--background-color-readonly-modal-input);
+ opacity: var(--opacity-readonly-modal-input);
+}
+
#add-realm-domain-widget {
.modal_text_input {
width: 14.7143em; /* 206px at 14px em */