Skip to content

Commit 179d7b0

Browse files
author
Fedo Hagge-Kubat
committed
fix(a11y): add Filters heading for both horizontal and vertical filter bar orientations
1 parent 14d7b43 commit 179d7b0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,13 @@ const DashboardBuilder = () => {
521521
{!hideDashboardHeader && <DashboardHeader />}
522522
{showFilterBar &&
523523
filterBarOrientation === FilterBarOrientation.Horizontal && (
524-
<FilterBar
525-
orientation={FilterBarOrientation.Horizontal}
526-
hidden={isReport}
527-
/>
524+
<>
525+
<SrOnlyH2>{t('Filters')}</SrOnlyH2>
526+
<FilterBar
527+
orientation={FilterBarOrientation.Horizontal}
528+
hidden={isReport}
529+
/>
530+
</>
528531
)}
529532
</>
530533
),
@@ -593,6 +596,7 @@ const DashboardBuilder = () => {
593596
hidden={isReport}
594597
data-test="dashboard-filters-panel"
595598
>
599+
<SrOnlyH2>{t('Filters')}</SrOnlyH2>
596600
<StickyPanel ref={containerRef} width={filterBarWidth}>
597601
<ErrorBoundary>
598602
<FilterBar

0 commit comments

Comments
 (0)