Skip to content

Commit

Permalink
Fix: Add aria-labels and correct colour contrast (#645)
Browse files Browse the repository at this point in the history
Fix: Add aria-labels and correct colour contrast
  • Loading branch information
ElinorW committed Jul 21, 2020
2 parents 012d794 + 39ef73b commit 9ab439e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
18 changes: 12 additions & 6 deletions src/app/views/query-response/QueryResponse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ class QueryResponse extends Component<IQueryResponseProps, IQueryResponseState>
calloutProps={{ gapSpace: 0 }}
styles={{ root: { display: 'inline-block' } }}
>
<IconButton onClick={this.handleShareQuery} className='share-query-btn' iconProps={{
iconName: 'Share'
}} />
<IconButton
onClick={this.handleShareQuery}
className='share-query-btn'
iconProps={{ iconName: 'Share'}}
aria-label={'Share query message'}
/>
</TooltipHost>
</div>

Expand All @@ -108,9 +111,12 @@ class QueryResponse extends Component<IQueryResponseProps, IQueryResponseState>
calloutProps={{ gapSpace: 0 }}
styles={{ root: { display: 'inline-block' } }}
>
<IconButton onClick={this.toggleModal} className='share-query-btn' iconProps={{
iconName: 'MiniExpandMirrored'
}} />
<IconButton
onClick={this.toggleModal}
className='share-query-btn'
iconProps={{ iconName: 'MiniExpandMirrored'}}
aria-label={'Expand response'}
/>
</TooltipHost>
</div>
</>}
Expand Down
1 change: 1 addition & 0 deletions src/app/views/sidebar/sample-queries/SampleQueries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ export class SampleQueries extends Component<ISampleQueriesProps, any> {
placeholder={messages['Search sample queries']}
onChange={this.searchValueChanged}
styles={{ field: { paddingLeft: 10 } }}
aria-label={'Search'}
/>
<hr />
{error && <MessageBar messageBarType={MessageBarType.warning}
Expand Down
2 changes: 1 addition & 1 deletion src/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const light = {
neutralQuaternary: '#d0d0d0',
neutralTertiaryAlt: '#c8c8c8',
neutralTertiary: '#c2c2c2',
neutralSecondary: '#858585',
neutralSecondary: '#535353',
neutralPrimaryAlt: '#4b4b4b',
neutralPrimary: '#333333',
neutralDark: '#272727',
Expand Down

0 comments on commit 9ab439e

Please sign in to comment.