Skip to content

Consistency: Add chip toolbar buttons to all DataView filters to match TreeViewFilter #646

Description

@katarinazaprazna

Hello,

During a recent PR review, we noticed that the DataViewTreeViewFilter contains an extra button in the chip toolbar that isn't present in other data-view filters:

Image

This is, however, as per the examples I found in PatternFly documentation, the correct behaviour for filters:

Image

Could you please implement this behaviour to the rest of the data-view filters?

Many thanks for considering the change!


Jira Issue: PF-4106

Activity

  1. aloktomarr commented on Jul 26, 2026

    @aloktomarr

    I picked this one up. The tree filter gets its group clear button from the deleteLabelGroup action on its ToolbarFilter, and the checkbox and text filters simply were not passing it, so I wired it up on both to match.

    One small design question before this is final. The text filter holds a single value, so its group clear ends up doing the same thing as deleting its one chip. I added it anyway to keep everything consistent like the issue asks, but if you would rather the group button only appear on the multi value filters I can scope it down. I opened a PR with tests and updated snapshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions