Skip to content

Commit

Permalink
a11y: Accessibility issue (#2197)
Browse files Browse the repository at this point in the history
* fix issue 2143 add title to form and visual iframe

* update text

* fix accessibility issue 2123 update ariaLabel text

Co-authored-by: Corina <14900841+corinagum@users.noreply.github.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
3 people authored Mar 12, 2020
1 parent eb0188b commit fd37ebf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Composer/packages/client/src/pages/design/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ function DesignPage(props) {
hidden={triggerButtonVisible || !selected}
src={`${rootPath}/extensionContainer.html`}
ref={addRef}
title={formatMessage('visual editor')}
/>
{!selected && onRenderBlankVisual(triggerButtonVisible, openNewTriggerModal)}
</div>
Expand All @@ -419,6 +420,7 @@ function DesignPage(props) {
name="FormEditor"
css={formEditor}
src={`${rootPath}/extensionContainer.html`}
title={formatMessage('form editor')}
/>
</div>
</Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ import { notificationHeader, notificationHeaderText, dropdownStyles } from './st

const createOptions = (): IDropdownOption[] => {
const defaultOptions: IDropdownOption[] = [
{ key: formatMessage('Show All Notifications'), text: formatMessage('All'), data: '', isSelected: true },
{
key: formatMessage('Show All Notifications'),
text: formatMessage('All'),
ariaLabel: formatMessage('Show All Notifications'),
data: '',
isSelected: true,
},
];
DiagnosticSeverity.forEach(item => {
return defaultOptions.push({ key: item, text: item, data: item });
return defaultOptions.push({ key: item, text: item, data: item, ariaLabel: `Show ${item} Notifications` });
});
return defaultOptions;
};
Expand Down

0 comments on commit fd37ebf

Please sign in to comment.