fixing a11y errors so we can add a11y rules for tslint (#26902)

This commit is contained in:
Bhavya RM 2018-12-10 13:06:19 -05:00 committed by GitHub
parent 45a67701f2
commit 7e0207385b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ class BasicLoginFormUI extends Component<Props, State> {
onChange={this.onUsernameChange}
disabled={this.state.isLoading}
isInvalid={false}
aria-required
aria-required={true}
inputRef={this.setUsernameInputRef}
/>
</EuiFormRow>
@ -79,7 +79,7 @@ class BasicLoginFormUI extends Component<Props, State> {
onChange={this.onPasswordChange}
disabled={this.state.isLoading}
isInvalid={false}
aria-required
aria-required={true}
/>
</EuiFormRow>

View file

@ -96,7 +96,7 @@ class EditRolePageUI extends Component<Props, State> {
<Fragment>
<EuiSpacer size="s" />
<EuiText size="s" color="subdued">
<p id="reservedRoleDescription" tabIndex={1}>
<p id="reservedRoleDescription" tabIndex={0}>
<FormattedMessage
id="xpack.security.management.editRole.modifyingReversedRolesDescription"
defaultMessage="Reserved roles are built-in and cannot be removed or modified."