Skip to content

Commit

Permalink
fix(dataTable): search accessibility issue (#7359)
Browse files Browse the repository at this point in the history
* fix(dataTable): search accessibility issue

* Removed Aria-hidden.

* chore: update snapshots

Co-authored-by: Cassidy Jensen <Cassidy.Jensen@ibm.com>
Co-authored-by: emyarod <afw5059@gmail.com>
Co-authored-by: TJ Egan <tw15egan@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed Dec 7, 2020
1 parent 56282c6 commit 38b009b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ const TableToolbarSearch = ({
className={className}
value={value}
id={typeof id !== 'undefined' ? id : uniqueId.toString()}
aria-hidden={!searchExpanded}
labelText={labelText || t('carbon.table.toolbar.search.label')}
placeHolderText={
placeHolderText || t('carbon.table.toolbar.search.placeholder')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2295,7 +2295,6 @@ exports[`DataTable should render 1`] = `
tabIndex="-1"
>
<Search
aria-hidden={false}
closeButtonLabelText="Clear search input"
id="custom-id"
labelText="Filter table"
Expand Down Expand Up @@ -2348,7 +2347,6 @@ exports[`DataTable should render 1`] = `
Filter table
</label>
<input
aria-hidden={false}
autoComplete="off"
className="bx--search-input"
id="custom-id"
Expand Down Expand Up @@ -3303,7 +3301,6 @@ exports[`DataTable sticky header should render 1`] = `
tabIndex="-1"
>
<Search
aria-hidden={false}
closeButtonLabelText="Clear search input"
id="custom-id"
labelText="Filter table"
Expand Down Expand Up @@ -3356,7 +3353,6 @@ exports[`DataTable sticky header should render 1`] = `
Filter table
</label>
<input
aria-hidden={false}
autoComplete="off"
className="bx--search-input"
id="custom-id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ exports[`DataTable.TableToolbarSearch should render 1`] = `
tabIndex="0"
>
<Search
aria-hidden={true}
className="custom-class"
closeButtonLabelText="Clear search input"
id="custom-id"
Expand Down Expand Up @@ -72,7 +71,6 @@ exports[`DataTable.TableToolbarSearch should render 1`] = `
Filter table
</label>
<input
aria-hidden={true}
autoComplete="off"
className="bx--search-input"
id="custom-id"
Expand Down

0 comments on commit 38b009b

Please sign in to comment.