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: Consolidate row and header focus-visible blocks.

Alya Abbotta8e1f1cb87dd
diff --git a/web/styles/inbox.css b/web/styles/inbox.css
index 1bb0a32f4cd..58e0f947c9e 100644
--- a/web/styles/inbox.css
+++ b/web/styles/inbox.css
@@ -736,6 +736,7 @@
}
}
+ .inbox-row,
.inbox-header {
&:focus-visible {
/* Flush outline on the row itself instead of the old
@@ -746,22 +747,27 @@
outline: var(--focus-ring-outline);
outline-offset: var(--focus-ring-outline-offset-in-views);
border-radius: 0.625em; /* 10px at 16px/1em */
+ }
- .collapsible-button > .zulip-icon {
+ /* Don't show the icons unless user is visibly focused
+ on the element or one of the elements within it. */
+ &:focus-within:not(:focus),
+ &:focus-visible {
+ .channel-visibility-policy-indicator,
+ .inbox-row-visibility-policy-inherit,
+ .inbox-action-button {
opacity: 1;
}
-
- .collapsible-button {
- visibility: visible;
- }
}
}
- .inbox-row {
- &:focus-visible {
- outline: var(--focus-ring-outline);
- outline-offset: var(--focus-ring-outline-offset-in-views);
- border-radius: 0.625em; /* 10px at 16px/1em */
+ .inbox-header:focus-visible {
+ .collapsible-button > .zulip-icon {
+ opacity: 1;
+ }
+
+ .collapsible-button {
+ visibility: visible;
}
}
@@ -784,20 +790,6 @@
}
}
- .inbox-row,
- .inbox-header {
- /* Don't show the icons unless user is visibly focused
- on the element or one of the elements within it. */
- &:focus-within:not(:focus),
- &:focus-visible {
- .channel-visibility-policy-indicator,
- .inbox-row-visibility-policy-inherit,
- .inbox-action-button {
- opacity: 1;
- }
- }
- }
-
.inbox-folder {
&:focus-visible {
.inbox-header-name-text,