Skip to content

Commit 1a63673

Browse files
authored
fix(FilterBar): announce filters dialog title by screen readers (#7730)
Related to #7582
1 parent 01e013e commit 1a63673

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/main/src/components/FilterBar/FilterDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ export const FilterDialog = (props: FilterDialogPropTypes) => {
479479
data-component-name="FilterBarDialog"
480480
data-is-phone={isPhone}
481481
onClose={handleClose}
482+
accessibleNameRef={`${uniqueId}-fb-dialog-title`}
482483
onOpen={onAfterFiltersDialogOpen}
483484
resizable
484485
draggable
@@ -489,7 +490,7 @@ export const FilterDialog = (props: FilterDialogPropTypes) => {
489490
<Bar
490491
design={BarDesign.Header}
491492
startContent={
492-
<Title level={TitleLevel.H4} title={filtersTitle}>
493+
<Title level={TitleLevel.H4} title={filtersTitle} id={`${uniqueId}-fb-dialog-title`}>
493494
{filtersTitle}
494495
</Title>
495496
}

0 commit comments

Comments
 (0)