Skip to content

Commit d217edd

Browse files
committed
Fix wrong hidden attribute for filter button on mobile
1 parent ce27e34 commit d217edd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/elastic-ui.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,15 @@
9999
font-weight: 500;
100100
color: hsl(var(--rfs-secondary-foreground));
101101
background-color: hsl(var(--rfs-secondary));
102-
border: 1px solid hsl(var(--rfs-border));
103102
border-radius: 4px;
104103
}
105104

105+
/* Bug in elasticsearch-ui: Filter toggle button has bad attribute "hidden" */
106+
.sui-layout-sidebar-toggle:where([hidden=""]) {
107+
/* Ignore hidden and display it always (we are in max-width: 800px) */
108+
display: block !important;
109+
}
110+
106111
.sui-layout-sidebar .sui-layout-sidebar-toggle {
107112
margin-bottom: 20px;
108113
}

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
--rfs-chart-4: 280 65% 60%;
6666
--rfs-chart-5: 340 75% 55%;
6767
}
68+
69+
[hidden]:where(:not([hidden="until-found"])) {
70+
display: none !important;
71+
}
6872
}
6973
}
7074

0 commit comments

Comments
 (0)