mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
3898f5b3ba
commit
97fd4481c8
3 changed files with 22 additions and 15 deletions
|
@ -504,6 +504,7 @@ exports[`NewVisModal should render as expected 1`] = `
|
|||
role="menu"
|
||||
>
|
||||
<EuiKeyPadMenuItemButton
|
||||
aria-describedby="visTypeDescription-vis"
|
||||
className="visNewVisDialog__type"
|
||||
data-test-subj="visType-vis"
|
||||
data-vis-stage="production"
|
||||
|
@ -523,6 +524,7 @@ exports[`NewVisModal should render as expected 1`] = `
|
|||
onMouseLeave={[Function]}
|
||||
>
|
||||
<button
|
||||
aria-describedby="visTypeDescription-vis"
|
||||
className="euiKeyPadMenuItem visNewVisDialog__type"
|
||||
data-test-subj="visType-vis"
|
||||
data-vis-stage="production"
|
||||
|
@ -598,6 +600,7 @@ exports[`NewVisModal should render as expected 1`] = `
|
|||
</button>
|
||||
</EuiKeyPadMenuItemButton>
|
||||
<EuiKeyPadMenuItemButton
|
||||
aria-describedby="visTypeDescription-visWithSearch"
|
||||
className="visNewVisDialog__type"
|
||||
data-test-subj="visType-visWithSearch"
|
||||
data-vis-stage="production"
|
||||
|
@ -617,6 +620,7 @@ exports[`NewVisModal should render as expected 1`] = `
|
|||
onMouseLeave={[Function]}
|
||||
>
|
||||
<button
|
||||
aria-describedby="visTypeDescription-visWithSearch"
|
||||
className="euiKeyPadMenuItem visNewVisDialog__type"
|
||||
data-test-subj="visType-visWithSearch"
|
||||
data-vis-stage="production"
|
||||
|
|
|
@ -180,6 +180,7 @@ class TypeSelection extends React.Component<TypeSelectionProps, TypeSelectionSta
|
|||
data-test-subj={`visType-${visType.name}`}
|
||||
data-vis-stage={visType.stage}
|
||||
disabled={isDisabled}
|
||||
aria-describedby={`visTypeDescription-${visType.name}`}
|
||||
{...stage}
|
||||
>
|
||||
<VisTypeIcon visType={visType} />
|
||||
|
|
|
@ -35,21 +35,23 @@ export const VisHelpText = ({ visType }: VisHelpTextProps) => {
|
|||
<h2>{visType.title}</h2>
|
||||
</EuiTitle>
|
||||
<EuiSpacer size="s" />
|
||||
{visType.stage === 'experimental' && (
|
||||
<React.Fragment>
|
||||
<EuiText>
|
||||
<em>
|
||||
<FormattedMessage
|
||||
id="kbn.visualize.newVisWizard.experimentalDescription"
|
||||
defaultMessage="This visualization is experimental. The design and implementation
|
||||
are less mature than stable visualizations and might be subject to change."
|
||||
/>
|
||||
</em>
|
||||
</EuiText>
|
||||
<EuiSpacer size="s" />
|
||||
</React.Fragment>
|
||||
)}
|
||||
<EuiText>{visType.description}</EuiText>
|
||||
<div id={`visTypeDescription-${visType.name}`}>
|
||||
{visType.stage === 'experimental' && (
|
||||
<React.Fragment>
|
||||
<EuiText>
|
||||
<em>
|
||||
<FormattedMessage
|
||||
id="kbn.visualize.newVisWizard.experimentalDescription"
|
||||
defaultMessage="This visualization is experimental. The design and implementation
|
||||
are less mature than stable visualizations and might be subject to change."
|
||||
/>
|
||||
</em>
|
||||
</EuiText>
|
||||
<EuiSpacer size="s" />
|
||||
</React.Fragment>
|
||||
)}
|
||||
<EuiText>{visType.description}</EuiText>
|
||||
</div>
|
||||
</React.Fragment>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue