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.

inbox, recent: Match message feed's 5px row focus-ring radius.

Alya Abbott9b358322e875
diff --git a/web/styles/inbox.css b/web/styles/inbox.css
index f949a3575c1..7ea49278b8e 100644
--- a/web/styles/inbox.css
+++ b/web/styles/inbox.css
@@ -862,7 +862,7 @@
edges instead of insetting 4px. */
outline: var(--focus-ring-outline);
outline-offset: var(--focus-ring-outline-offset-in-views);
- border-radius: 0.625em; /* 10px at 16px/1em */
+ border-radius: 0.3125em; /* 5px at 16px/1em */
}
}
@@ -889,10 +889,7 @@
&:focus-visible {
outline: var(--focus-ring-outline);
outline-offset: -0.125em; /* -2px at 16px/1em */
- /* Match the row outline's radius so the button ring
- visibly rounds rather than reading as square — 5px on
- a 26×26 ring is too subtle to notice at 1× DPR. */
- border-radius: 0.625em; /* 10px at 16px/1em */
+ border-radius: 0.3125em; /* 5px at 16px/1em */
> i,
> .zulip-icon,
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css
index aebd15185eb..7762389f054 100644
--- a/web/styles/recent_view.css
+++ b/web/styles/recent_view.css
@@ -127,7 +127,12 @@
}
&.recent-view-topic-visibility {
- border-radius: 0.3125em; /* 5px at 16px/1em */
+ /* 3px (vs. 5px on `.recent-view-body-row`) keeps a
+ consistent perceived corner-rounding ratio: 5px on
+ a wide row reads as a subtle round, but on a small
+ 22×22 ring (icon-natural wrapper + 3px outset) it
+ reads as nearly circular. */
+ border-radius: 0.1875em; /* 3px at 16px/1em */
/* 3px rather than 5px: the wrapper sits hard against
the recent-view table's right edge (the table has
overflow:hidden), so a 5px outset left the outline's
@@ -1007,7 +1012,15 @@
.recent-view-body-row {
outline-offset: -0.25em; /* -4px at 16px/1em */
- border-radius: 0.625em; /* 10px at 16px/1em */
+ /* 0.4688em (vs. inbox's 0.3125em / 5px) — the larger
+ negative offset on this view shrinks the ring's effective
+ corner radius (`border-radius` minus `|outline-offset|`),
+ so we bump the base radius so the ring's painted corners
+ read with the same curvature as `.inbox-row`'s 3.5px
+ effective radius. Em-based so both offset and radius
+ scale together with the user's font size, keeping the
+ perceived corner-rounding ratio stable. */
+ border-radius: 0.4688em; /* 7.5px at 16px/1em */
}
.recent-view-table-unread-count {