Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popovers: Prevent focus ring from clipping at fractional zoom.
Evy Kassirer843cf84c1b99
diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 1d4b128e111..42271c4fe63 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -1084,9 +1084,14 @@ ul.popover-group-menu-member-list {&:focus-visible {border-radius: 4px;- /* Override the default focus style */- outline: 1px solid var(--color-outline-focus) !important;- outline-offset: -1px;+ /* Use an inset box-shadow rather than+ `outline` with a negative `outline-offset`,+ which at fractional browser zoom levels can+ render at subpixel positions outside the item+ and get clipped by the menu's `overflow-x:+ hidden`. */+ outline: none;+ box-shadow: inset 0 0 0 1px var(--color-outline-focus);background: var(--color-background-hover-popover-menu);}