Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox, recent: Round the unread-count focus ring at 8px.
Aman Agrawald1b9252e2328
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 3caa82a815e..8b75c1f84cb 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -1022,6 +1022,7 @@--focus-ring-outline-offset-in-views: calc(-1 * var(--focus-ring-width-in-views));+ --unread-count-focus-outline-radius-in-views: 0.5em; /* 8px at 16px/1em */--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/inbox.css b/web/styles/inbox.cssindex 7ea49278b8e..1e1c95460c9 100644--- a/web/styles/inbox.css+++ b/web/styles/inbox.css@@ -900,18 +900,11 @@}/* Focus ring drawn as a pseudo-element on the inner badge,- with `5px` of breathing room outside the badge and `5px`- corners on the ring so it visually matches the action- button and state-marker rings, which paint at 3px effective- (5px `border-radius` minus 2px `outline-offset`) but on- smaller (~26×26) wrappers. Using straight `5px` corners on- this larger (~26×28) ring keeps the perceived corner- roundness consistent with the inbox's other focus- indicators. A wrapper-sized outline (the previous- implementation) leaves a wide gap between the ring and- the badge fill that reads as a second concentric outline;- the deliberate 5px gap here reads as padding around a- single badge instead. */+ with `5px` of breathing room outside the badge. A+ wrapper-sized outline (the previous implementation) leaves a+ wide gap between the ring and the badge fill that reads as a+ second concentric outline; the deliberate 5px gap here reads+ as padding around a single badge instead. */.unread-count-focus-outline {&:focus-visible {outline: none;@@ -929,7 +922,9 @@position: absolute;inset: -0.3125em; /* -5px at 16px/1em */border: var(--focus-ring-outline);- border-radius: 0.3125em; /* 5px at 16px/1em */+ border-radius: var(+ --unread-count-focus-outline-radius-in-views+ );pointer-events: none;}}diff --git a/web/styles/recent_view.css b/web/styles/recent_view.cssindex 7762389f054..e4d827afa59 100644--- a/web/styles/recent_view.css+++ b/web/styles/recent_view.css@@ -1048,7 +1048,7 @@position: absolute;inset: -0.3125em; /* -5px at 16px/1em */border: var(--focus-ring-outline);- border-radius: 0.3125em; /* 5px at 16px/1em */+ border-radius: var(--unread-count-focus-outline-radius-in-views);pointer-events: none;}}