Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Canvas] Use compressed forms in sidebar #49419

Merged
merged 13 commits into from
Nov 15, 2019
Prev Previous commit
Next Next commit
convert string to i18n
  • Loading branch information
ryankeairns committed Nov 15, 2019
commit 7fd5679f564523b718ac3af6d85dbc5369ba0738
4 changes: 4 additions & 0 deletions x-pack/legacy/plugins/canvas/i18n/expression_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export const ArgTypesStrings = {
i18n.translate('xpack.canvas.expressionTypes.argTypes.seriesStyle.colorLabel', {
defaultMessage: 'Color',
}),
getColorValueDefault: () =>
i18n.translate('xpack.canvas.expressionTypes.argTypes.seriesStyle.colorValueDefault', {
defaultMessage: 'Auto',
}),
getStyleLabel: () =>
i18n.translate('xpack.canvas.expressionTypes.argTypes.seriesStyle.styleLabel', {
defaultMessage: 'Style',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export const SimpleTemplate: FunctionComponent<Props> = props => {
<EuiFlexItem grow={false}>
<EuiText size="xs">
<EuiLink
aria-label={`${strings.getColorLabel()}: Auto`}
aria-label={`${strings.getColorLabel()}: ${strings.getColorValueDefault()}`}
onClick={() => handleChange('color', '#000000')}
>
Auto
{strings.getColorValueDefault()}
</EuiLink>
</EuiText>
</EuiFlexItem>
Expand Down