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.

css: Extract focus-ring outline shorthand to a variable.

Aman Agrawalbe7c303189e0
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 38e81aee52c..b8758a0157e 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -1008,6 +1008,12 @@
);
--color-outline-focus: hsl(215deg 47% 50%);
--focus-ring-width-in-views: 1.5px;
+ /* Standard focus ring stroke; used by `:focus-visible`
+ outlines on inbox rows, recent-view rows, action-button
+ wrappers, unread badges, etc. so that a future width or
+ color change touches one place. */
+ --focus-ring-outline: var(--focus-ring-width-in-views) solid
+ var(--color-outline-focus);
--color-background-search: light-dark(hsl(0deg 0% 100%), hsl(0deg 0% 17%));
--color-background-search-collapsed: light-dark(
hsl(0deg 0% 100%),
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css
index 8bbac9ba2a2..ef339deaec3 100644
--- a/web/styles/recent_view.css
+++ b/web/styles/recent_view.css
@@ -64,8 +64,7 @@
}
&:focus {
- outline: var(--focus-ring-width-in-views) solid
- var(--color-outline-focus);
+ outline: var(--focus-ring-outline);
> .change_visibility_policy .recent-view-row-topic-menu {
opacity: 0.2;