Skip to content

Commit

Permalink
[ML] (Accessibility) Import Data -> Index Name should announce as "r…
Browse files Browse the repository at this point in the history
…equired" #31130  (#34341)

* adds aria label for required index name text input
* translated aria-label for advanced DataVisualizer import settings
  • Loading branch information
PhilippBaranovskiy authored Apr 2, 2019
1 parent 5c15e6b commit 5b9cdc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ function AdvancedSettingsUi({
disabled={(initialized === true)}
onChange={onIndexChange}
isInvalid={indexNameError !== ''}
aria-label={intl.formatMessage({
id: 'xpack.ml.fileDatavisualizer.advancedImportSettings.indexNameAriaLabel',
defaultMessage: 'Index name, required field'
})}
/>
</EuiFormRow>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export const SimpleSettings = injectI18n(function ({
disabled={(initialized === true)}
onChange={onIndexChange}
isInvalid={indexNameError !== ''}
aria-label={intl.formatMessage({
id: 'xpack.ml.fileDatavisualizer.simpleImportSettings.indexNameAriaLabel',
defaultMessage: 'Index name, required field'
})}
/>
</EuiFormRow>

Expand Down

0 comments on commit 5b9cdc7

Please sign in to comment.