Skip to content

Commit

Permalink
fix: use xs buttons for discover table cell filter buttons (opensearc…
Browse files Browse the repository at this point in the history
…h-project#7531)

Signed-off-by: Viraj Sanghvi <virajs@amazon.com>
  • Loading branch information
virajsanghvi committed Jul 27, 2024
1 parent 3168283 commit 8441667
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import './_table_cell.scss';

import React from 'react';
import { EuiSmallButtonIcon, EuiToolTip } from '@elastic/eui';
import { EuiButtonIcon, EuiToolTip } from '@elastic/eui';
import { i18n } from '@osd/i18n';
import { DocViewFilterFn } from '../../doc_views/doc_views_types';

Expand Down Expand Up @@ -45,7 +45,8 @@ const TableCellUI = ({
defaultMessage: 'Filter for value',
})}
>
<EuiSmallButtonIcon
<EuiButtonIcon
size="xs"
onClick={() => onFilter?.(columnId, fieldMapping, '+')}
iconType="plusInCircle"
aria-label={i18n.translate('discover.filterForValueLabel', {
Expand All @@ -60,7 +61,8 @@ const TableCellUI = ({
defaultMessage: 'Filter out value',
})}
>
<EuiSmallButtonIcon
<EuiButtonIcon
size="xs"
onClick={() => onFilter?.(columnId, fieldMapping, '-')}
iconType="minusInCircle"
aria-label={i18n.translate('discover.filterOutValueLabel', {
Expand Down

0 comments on commit 8441667

Please sign in to comment.