Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add aria-labels and correct colour contrast #645

Merged
merged 6 commits into from
Jul 21, 2020

Conversation

ElinorW
Copy link
Collaborator

@ElinorW ElinorW commented Jul 21, 2020

Overview

  • Add aria-labels for screen reader support.
  • Altering the secondary text color on the persona card's tooltip to fit the acceptable color contrast ratio

Fixes #495

@ElinorW ElinorW requested review from jobala and thewahome July 21, 2020 10:01
onClick={this.toggleModal}
className='share-query-btn'
iconProps={{ iconName: 'MiniExpandMirrored'}}
aria-label={'Expand response'}
Copy link
Collaborator

@thewahome thewahome Jul 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have noticed that you are using aria-label and ariaLabel interchangeably. Do they both work? If so, we can stick to one (aria-label)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah while reading the Fluent UI docs, under some components the say that the 'ariaLabel' is obsolete, so yeah I definitely think we should stick to aria-label

@@ -330,6 +330,7 @@ export class SampleQueries extends Component<ISampleQueriesProps, any> {
placeholder={messages['Search sample queries']}
onChange={this.searchValueChanged}
styles={{ field: { paddingLeft: 10 } }}
ariaLabel={'Search'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this changes to aria-label?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@ElinorW ElinorW merged commit 9ab439e into dev Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessibility issue on the tool-tip on the persona card
3 participants