Skip to content

Commit

Permalink
Fix screenreader text in DG sort dropdown (#5084)
Browse files Browse the repository at this point in the history
DG dropdown had a problem with i18n text and the close from screen reader.
  • Loading branch information
snide authored Aug 25, 2021
1 parent fa14cf4 commit f1f395f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
**Bug fixes**

- Fixed location of default value of `EuiToolTip`'s `display` prop ([#5066](https://github.com/elastic/eui/pull/5066))
- Fixed instance of `EuiScreenReader` text being exposed in `EuiDataGrid` sorting menu ([#5084](https://github.com/elastic/eui/pull/5084))
- Fixed default value of `EuiPagination`'s `activePage` to target first page ([#5053](https://github.com/elastic/eui/pull/5053))

**Theme: Amsterdam**
Expand Down
16 changes: 9 additions & 7 deletions src/components/datagrid/column_sorting_draggable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,15 @@ export const EuiDataGridColumnSortingDraggable: FunctionComponent<EuiDataGridCol
}`}
>
<EuiScreenReaderOnly>
<EuiI18n
token="euiColumnSortingDraggable.activeSortLabel"
default="{display} is sorting this data grid"
values={{ display }}
>
{(activeSortLabel: string) => <p>{activeSortLabel}</p>}
</EuiI18n>
<p>
<EuiI18n
token="euiColumnSortingDraggable.activeSortLabel"
default="{display} is sorting this data grid"
values={{ display }}
>
{(activeSortLabel: string) => activeSortLabel}
</EuiI18n>
</p>
</EuiScreenReaderOnly>
<EuiFlexGroup
gutterSize="xs"
Expand Down

0 comments on commit f1f395f

Please sign in to comment.