Skip to content

Commit

Permalink
[MM-16039] Fixed accessibility issues with the Account Settings modal (
Browse files Browse the repository at this point in the history
…mattermost#3051)

* [MM-16039] Fixed accessibility issues with the Account Settings modal

* [MM-16039] Removed workaround and fixed case
  • Loading branch information
devinbinnie authored Jul 4, 2019
1 parent f01241b commit cb52947
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/__snapshots__/setting_item_min.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exports[`components/SettingItemMin should match snapshot 1`] = `
className="col-xs-12 col-sm-3 section-edit"
>
<button
aria-labelledby="sectionTitle sectionEdit"
className="color--link cursor--pointer style--none text-left"
id="sectionEdit"
onClick={[Function]}
Expand Down
2 changes: 2 additions & 0 deletions components/setting_item_min.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default class SettingItemMin extends React.PureComponent {
className='color--link cursor--pointer style--none'
onClick={this.handleUpdateSection}
ref={this.getEdit}
aria-labelledby={this.props.section + 'Title ' + this.props.section + 'Edit'}
>
<EditIcon/>
{this.props.describe}
Expand All @@ -94,6 +95,7 @@ export default class SettingItemMin extends React.PureComponent {
className='color--link cursor--pointer style--none text-left'
onClick={this.handleUpdateSection}
ref={this.getEdit}
aria-labelledby={this.props.section + 'Title ' + this.props.section + 'Edit'}
>
<EditIcon/>
<FormattedMessage
Expand Down
1 change: 1 addition & 0 deletions components/settings_sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default class SettingsSidebar extends React.Component {
id={`${tab.name}Button`}
className='cursor--pointer style--none'
onClick={this.handleClick.bind(null, tab)}
aria-label={tab.uiName.toLowerCase()}
>
<i
className={tab.icon}
Expand Down

0 comments on commit cb52947

Please sign in to comment.