Skip to content

Commit

Permalink
Improved ARIA labelling for question sort dropdown.
Browse files Browse the repository at this point in the history
See #109.
  • Loading branch information
boonebgorges committed May 1, 2018
1 parent 0fa44a9 commit 7e7530b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38628,11 +38628,13 @@ class QuestionSortDropdown extends __WEBPACK_IMPORTED_MODULE_0_react__["Componen
'label',
{
className: 'screen-reader-text',
htmlFor: 'question-sort'
htmlFor: 'question-sort',
id: 'question-sort-label'
},
'Sort results by'
),
__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_react_select__["a" /* default */], {
'aria-labelledby': 'question-sort-label',
autoBlur: true,
id: 'question-sort',
name: 'question-sort',
Expand Down
2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/components/QuestionSortDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ export default class QuestionSortDropdown extends Component {
<label
className='screen-reader-text'
htmlFor='question-sort'
id='question-sort-label'
>Sort results by</label>

<Select
aria-labelledby='question-sort-label'
autoBlur={true}
id='question-sort'
name='question-sort'
Expand Down

0 comments on commit 7e7530b

Please sign in to comment.