mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* added aria label
This commit is contained in:
parent
ecd19d0bab
commit
965340d6a8
2 changed files with 7 additions and 1 deletions
|
@ -15,6 +15,7 @@ exports[`SecureSpaceMessage renders if user profile allows security to be manage
|
|||
values={
|
||||
Object {
|
||||
"rolesLink": <EuiLink
|
||||
aria-label="Roles management page"
|
||||
color="primary"
|
||||
href="#/management/security/roles"
|
||||
type="button"
|
||||
|
|
|
@ -6,11 +6,16 @@
|
|||
|
||||
import { EuiHorizontalRule, EuiLink, EuiText } from '@elastic/eui';
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React, { Fragment } from 'react';
|
||||
import { capabilities } from 'ui/capabilities';
|
||||
|
||||
export const SecureSpaceMessage = ({}) => {
|
||||
if (capabilities.get().spaces.manage) {
|
||||
const rolesLinkTextAriaLabel = i18n.translate(
|
||||
'xpack.spaces.management.secureSpaceMessage.rolesLinkTextAriaLabel',
|
||||
{ defaultMessage: 'Roles management page' }
|
||||
);
|
||||
return (
|
||||
<Fragment>
|
||||
<EuiHorizontalRule />
|
||||
|
@ -21,7 +26,7 @@ export const SecureSpaceMessage = ({}) => {
|
|||
defaultMessage="Want to assign a role to a space? Go to {rolesLink}."
|
||||
values={{
|
||||
rolesLink: (
|
||||
<EuiLink href="#/management/security/roles">
|
||||
<EuiLink href="#/management/security/roles" aria-label={rolesLinkTextAriaLabel}>
|
||||
<FormattedMessage
|
||||
id="xpack.spaces.management.secureSpaceMessage.rolesLinkText"
|
||||
defaultMessage="Roles"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue