set aria-pressed for function buttons (#87825) (#88203)

This commit is contained in:
Joe Reuter 2021-01-14 14:45:28 +01:00 committed by GitHub
parent ae139f927f
commit 6e41fb8a22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,6 +220,7 @@ export function DimensionEditor(props: DimensionEditorProps) {
'data-test-subj': `lns-indexPatternDimension-${operationType}${
compatibleWithCurrentField ? '' : ' incompatible'
}`,
[`aria-pressed`]: isActive,
onClick() {
if (
operationDefinitionMap[operationType].input === 'none' ||