Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Jul 5, 2022
1 parent c4931aa commit 33e0022
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export const lastValueOperation: OperationDefinition<
'xpack.lens.indexPattern.lastValue.showArrayValuesWithTopValuesWarning',
{
defaultMessage:
'When you show array values, you are unable to use this field to rank Top values.',
'When you show array values, you are unable to use this field to rank top values.',
}
)}
isInvalid={currentColumn.params.showArrayValues && usingTopValues}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.lnsInnerIndexPattern__inlineRow {
.lnsIndexPatternDimensionEditor__labelCustomRank {
min-width: 96px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export const FormRow = ({ children, label, isInline, ...props }: FormRowProps) =
) : (
<div data-test-subj={props['data-test-subj']}>
{React.cloneElement(children, {
prepend: <EuiFormLabel className="lnsInnerIndexPattern__inlineRow">{label}</EuiFormLabel>,
prepend: (
<EuiFormLabel className="lnsIndexPatternDimensionEditor__labelCustomRank">
{label}
</EuiFormLabel>
),
})}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1012,10 +1012,10 @@ function getLabelForRankFunctions(operationType: string) {
defaultMessage: 'Sort rank by',
}),
];
case 'percentile':
case 'percentile_rank':
return [
i18n.translate('xpack.lens.indexPattern.terms.percentile.', {
defaultMessage: 'Rank percentile',
defaultMessage: 'Percentile ranks',
}),
];
default:
Expand Down

0 comments on commit 33e0022

Please sign in to comment.