Skip to content

A platform for community discussion. Free, open, simple.

UX: ensures we don't focus invisible button in sidebar (#18502)

Joffrey JAFFEUX2d518b289589
diff --git a/app/assets/stylesheets/common/base/sidebar-section.scss b/app/assets/stylesheets/common/base/sidebar-section.scss
index a583a9a7ae8..d70e794de98 100644
--- a/app/assets/stylesheets/common/base/sidebar-section.scss
+++ b/app/assets/stylesheets/common/base/sidebar-section.scss
@@ -32,6 +32,10 @@
.discourse-no-touch & {
transition: all 0.25s;
opacity: 0;
+
+ &:focus {
+ opacity: 1;
+ }
}
background: transparent;
@@ -74,6 +78,10 @@
&.sidebar-section-header-collapsable {
justify-content: flex-start;
+
+ &:focus {
+ background: transparent;
+ }
}
}