Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Add focus to subscribe button.
nimishmedatwal561cc9eab3e8
diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex c371d512297..1e3b5a136ce 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -464,6 +464,11 @@ export function show_user_profile(user, default_tab_key = "profile-tab") {render_manage_profile_content(user);break;}+ setTimeout(() => {+ $(".modal__body .simplebar-content-wrapper").attr("tabindex", "-1");+ $(".modal__container .ind-tab").attr("tabindex", "-1");+ $(".modal__container .ind-tab.selected").attr("tabindex", "0");+ }, 0);},};diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex 3d0d7865e19..e9696703543 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -157,6 +157,15 @@ input::placeholder {background-color: hsl(0deg 0% 95%);}+ &.add-subscription-button {+ &:focus-visible {+ border: 1px solid;+ border-color: var(+ --color-border-add-subscription-button-focus+ ) !important;+ }+ }+&.sea-green {color: hsl(156deg 41% 40%);border-color: hsl(156deg 28% 70%);diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex e09c4608139..d8556b5c52b 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -202,6 +202,7 @@--color-border-popover-menu: hsl(0deg 0% 0% / 40%);--color-border-personal-menu-avatar: hsl(0deg 0% 0% / 10%);--color-background-unread-counter: hsl(105deg 2% 50%);+ --color-border-add-subscription-button-focus: hsl(0deg 0% 20%);/* There's no alpha channel here, but this keepsthe variable names in line. */--color-background-unread-counter-no-alpha: var(@@ -755,6 +756,7 @@--color-background-emoji-picker-emoji-reacted: hsl(0deg 0% 0% / 50%);--color-border-emoji-picker-emoji-reacted: hsl(0deg 0% 0% / 90%);--color-background-emoji-picker-emoji-reacted-focus: hsl(0deg 0% 20% / 70%);+ --color-border-add-subscription-button-focus: hsl(0deg 0% 67%);}@media screen {