mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Lens] Unification of filtering labels (#163389)
## Summary Changes the texts as proposed [here](https://github.com/elastic/kibana/issues/160872) (for both lens and aggbased visualizations) <img width="996" alt="image" src="f7e29a36
-a6d3-4ad2-832c-4d58505a8a51"> <img width="1073" alt="image" src="74b74773
-f1f4-4ba5-b727-e144eef955f2">
This commit is contained in:
parent
da0fb1d987
commit
e3e0558aa4
6 changed files with 18 additions and 18 deletions
|
@ -64,7 +64,7 @@ export const getLegendActions = (
|
|||
panelItems.push(
|
||||
{
|
||||
name: i18n.translate('expressionPartitionVis.legend.filterForValueButtonAriaLabel', {
|
||||
defaultMessage: 'Filter for value',
|
||||
defaultMessage: 'Filter for',
|
||||
}),
|
||||
'data-test-subj': `legend-${title}-filterIn`,
|
||||
icon: <EuiIcon type="plusInCircle" size="m" />,
|
||||
|
@ -75,7 +75,7 @@ export const getLegendActions = (
|
|||
},
|
||||
{
|
||||
name: i18n.translate('expressionPartitionVis.legend.filterOutValueButtonAriaLabel', {
|
||||
defaultMessage: 'Filter out value',
|
||||
defaultMessage: 'Filter out',
|
||||
}),
|
||||
'data-test-subj': `legend-${title}-filterOut`,
|
||||
icon: <EuiIcon type="minusInCircle" size="m" />,
|
||||
|
|
|
@ -56,7 +56,7 @@ export const LegendActionPopover: React.FunctionComponent<LegendActionPopoverPro
|
|||
items: [
|
||||
{
|
||||
name: i18n.translate('expressionXY.legend.filterForValueButtonAriaLabel', {
|
||||
defaultMessage: 'Filter for value',
|
||||
defaultMessage: 'Filter for',
|
||||
}),
|
||||
'data-test-subj': `legend-${label}-filterIn`,
|
||||
icon: <EuiIcon type="plusInCircle" size="m" />,
|
||||
|
@ -67,7 +67,7 @@ export const LegendActionPopover: React.FunctionComponent<LegendActionPopoverPro
|
|||
},
|
||||
{
|
||||
name: i18n.translate('expressionXY.legend.filterOutValueButtonAriaLabel', {
|
||||
defaultMessage: 'Filter out value',
|
||||
defaultMessage: 'Filter out',
|
||||
}),
|
||||
'data-test-subj': `legend-${label}-filterOut`,
|
||||
icon: <EuiIcon type="minusInCircle" size="m" />,
|
||||
|
|
|
@ -69,13 +69,13 @@ export const createGridColumns = (
|
|||
const filterForText = i18n.translate(
|
||||
'visTypeTable.tableCellFilter.filterForValueText',
|
||||
{
|
||||
defaultMessage: 'Filter for value',
|
||||
defaultMessage: 'Filter for',
|
||||
}
|
||||
);
|
||||
const filterForAriaLabel = i18n.translate(
|
||||
'visTypeTable.tableCellFilter.filterForValueAriaLabel',
|
||||
{
|
||||
defaultMessage: 'Filter for value: {cellContent}',
|
||||
defaultMessage: 'Filter for: {cellContent}',
|
||||
values: {
|
||||
cellContent,
|
||||
},
|
||||
|
@ -105,13 +105,13 @@ export const createGridColumns = (
|
|||
const filterOutText = i18n.translate(
|
||||
'visTypeTable.tableCellFilter.filterOutValueText',
|
||||
{
|
||||
defaultMessage: 'Filter out value',
|
||||
defaultMessage: 'Filter out',
|
||||
}
|
||||
);
|
||||
const filterOutAriaLabel = i18n.translate(
|
||||
'visTypeTable.tableCellFilter.filterOutValueAriaLabel',
|
||||
{
|
||||
defaultMessage: 'Filter out value: {cellContent}',
|
||||
defaultMessage: 'Filter out: {cellContent}',
|
||||
values: {
|
||||
cellContent,
|
||||
},
|
||||
|
|
|
@ -65,7 +65,7 @@ const VisLegendItemComponent = ({
|
|||
{
|
||||
id: 'filterIn',
|
||||
label: i18n.translate('visTypeVislib.vislib.legend.filterForValueButtonAriaLabel', {
|
||||
defaultMessage: 'Filter for value {legendDataLabel}',
|
||||
defaultMessage: 'Filter for {legendDataLabel}',
|
||||
values: { legendDataLabel: item.label },
|
||||
}),
|
||||
iconType: 'plusInCircle',
|
||||
|
@ -74,7 +74,7 @@ const VisLegendItemComponent = ({
|
|||
{
|
||||
id: 'filterOut',
|
||||
label: i18n.translate('visTypeVislib.vislib.legend.filterOutValueButtonAriaLabel', {
|
||||
defaultMessage: 'Filter out value {legendDataLabel}',
|
||||
defaultMessage: 'Filter out {legendDataLabel}',
|
||||
values: { legendDataLabel: item.label },
|
||||
}),
|
||||
iconType: 'minusInCircle',
|
||||
|
|
|
@ -40,7 +40,7 @@ export const LegendActionPopover: React.FunctionComponent<LegendActionPopoverPro
|
|||
items: [
|
||||
{
|
||||
name: i18n.translate('xpack.lens.shared.legend.filterForValueButtonAriaLabel', {
|
||||
defaultMessage: 'Filter for value',
|
||||
defaultMessage: 'Filter for',
|
||||
}),
|
||||
'data-test-subj': `legend-${label}-filterIn`,
|
||||
icon: <EuiIcon type="plusInCircle" size="m" />,
|
||||
|
@ -51,7 +51,7 @@ export const LegendActionPopover: React.FunctionComponent<LegendActionPopoverPro
|
|||
},
|
||||
{
|
||||
name: i18n.translate('xpack.lens.shared.legend.filterOutValueButtonAriaLabel', {
|
||||
defaultMessage: 'Filter out value',
|
||||
defaultMessage: 'Filter out',
|
||||
}),
|
||||
'data-test-subj': `legend-${label}-filterOut`,
|
||||
icon: <EuiIcon type="minusInCircle" size="m" />,
|
||||
|
|
|
@ -91,13 +91,13 @@ export const createGridColumns = (
|
|||
const filterForText = i18n.translate(
|
||||
'xpack.lens.table.tableCellFilter.filterForValueText',
|
||||
{
|
||||
defaultMessage: 'Filter for value',
|
||||
defaultMessage: 'Filter for',
|
||||
}
|
||||
);
|
||||
const filterForAriaLabel = i18n.translate(
|
||||
'xpack.lens.table.tableCellFilter.filterForValueAriaLabel',
|
||||
{
|
||||
defaultMessage: 'Filter for value: {cellContent}',
|
||||
defaultMessage: 'Filter for: {cellContent}',
|
||||
values: {
|
||||
cellContent,
|
||||
},
|
||||
|
@ -129,13 +129,13 @@ export const createGridColumns = (
|
|||
const filterOutText = i18n.translate(
|
||||
'xpack.lens.table.tableCellFilter.filterOutValueText',
|
||||
{
|
||||
defaultMessage: 'Filter out value',
|
||||
defaultMessage: 'Filter out',
|
||||
}
|
||||
);
|
||||
const filterOutAriaLabel = i18n.translate(
|
||||
'xpack.lens.table.tableCellFilter.filterOutValueAriaLabel',
|
||||
{
|
||||
defaultMessage: 'Filter out value: {cellContent}',
|
||||
defaultMessage: 'Filter out: {cellContent}',
|
||||
values: {
|
||||
cellContent,
|
||||
},
|
||||
|
@ -230,7 +230,7 @@ export const createGridColumns = (
|
|||
onClick: () => handleTransposedColumnClick(bucketValues, false),
|
||||
iconType: 'plusInCircle',
|
||||
label: i18n.translate('xpack.lens.table.columnFilter.filterForValueText', {
|
||||
defaultMessage: 'Filter for column',
|
||||
defaultMessage: 'Filter for',
|
||||
}),
|
||||
'data-test-subj': 'lensDatatableHide',
|
||||
});
|
||||
|
@ -241,7 +241,7 @@ export const createGridColumns = (
|
|||
onClick: () => handleTransposedColumnClick(bucketValues, true),
|
||||
iconType: 'minusInCircle',
|
||||
label: i18n.translate('xpack.lens.table.columnFilter.filterOutValueText', {
|
||||
defaultMessage: 'Filter out column',
|
||||
defaultMessage: 'Filter out',
|
||||
}),
|
||||
'data-test-subj': 'lensDatatableHide',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue