Skip to content

Commit

Permalink
Removed noDivider prop from EuiFilterButton
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed May 4, 2022
1 parent 97d3d0a commit 07f0348
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
8 changes: 1 addition & 7 deletions src/components/filter_group/filter_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ export type EuiFilterButtonProps = {
* Remove border after button, good for opposite filters
*/
withNext?: boolean;
/**
* _DEPRECATED: use `withNext`_
* Remove border after button, good for opposite filters
*/
noDivider?: boolean;
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size'>;

export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps> = ({
Expand All @@ -63,7 +58,6 @@ export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps> = ({
isSelected,
type = 'button',
grow = true,
noDivider,
withNext,
textProps,
...rest
Expand All @@ -80,7 +74,7 @@ export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps> = ({
'euiFilterButton-hasNotification': numFiltersDefined,
'euiFilterButton--hasIcon': iconType,
'euiFilterButton--noGrow': !grow,
'euiFilterButton--withNext': noDivider || withNext,
'euiFilterButton--withNext': withNext,
},
className
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Array [
aria-pressed={true}
hasActiveFilters={true}
key="field_value_toggle_filter_item_0"
noDivider={true}
onClick={[Function]}
withNext={true}
>
Expand All @@ -16,7 +15,6 @@ Array [
aria-pressed={false}
hasActiveFilters={false}
key="field_value_toggle_filter_item_1"
noDivider={false}
onClick={[Function]}
withNext={false}
>
Expand All @@ -31,7 +29,6 @@ Array [
aria-pressed={true}
hasActiveFilters={true}
key="field_value_toggle_filter_item_0"
noDivider={true}
onClick={[Function]}
withNext={true}
>
Expand All @@ -41,7 +38,6 @@ Array [
aria-pressed={false}
hasActiveFilters={false}
key="field_value_toggle_filter_item_1"
noDivider={false}
onClick={[Function]}
withNext={false}
>
Expand All @@ -56,7 +52,6 @@ Array [
aria-pressed={true}
hasActiveFilters={true}
key="field_value_toggle_filter_item_0"
noDivider={true}
onClick={[Function]}
withNext={true}
>
Expand All @@ -66,7 +61,6 @@ Array [
aria-pressed={false}
hasActiveFilters={false}
key="field_value_toggle_filter_item_1"
noDivider={false}
onClick={[Function]}
withNext={false}
>
Expand All @@ -81,7 +75,6 @@ Array [
aria-pressed={false}
hasActiveFilters={false}
key="field_value_toggle_filter_item_0"
noDivider={true}
onClick={[Function]}
withNext={true}
>
Expand All @@ -91,7 +84,6 @@ Array [
aria-pressed={false}
hasActiveFilters={false}
key="field_value_toggle_filter_item_1"
noDivider={false}
onClick={[Function]}
withNext={false}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export class FieldValueToggleGroupFilter extends Component<
key={key}
onClick={onClick}
hasActiveFilters={active}
noDivider={!isLastItem}
aria-pressed={!!active}
withNext={!isLastItem}
>
Expand Down
1 change: 1 addition & 0 deletions upcoming_changelogs/5868.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- Removed deprecated options for `EuiDatePicker`'s `popoverPosition` props - use `EuiPopover` values going forward
- Removed `partition` prop from EuiCharts theme configuration - use `theme.partition` instead
- Removed `data-grid-cell-id` attribute from `EuiDataGrid` cells - use separate `data-gridcell-column-id` & `data-gridcell-row-index` attributes instead
- Removed `noDivider` prop from `EuiFilterButton` - use `withNext` prop instead

0 comments on commit 07f0348

Please sign in to comment.