This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Inconsistent "remove" button markup between List and Chips #6915
Labels
block: active filters
Issues related to the Active Filters block.
focus: components
Work that introduces new or updates existing components.
type: cooldown
Things that are queued for a cooldown period (assists with planning).
type: enhancement
The issue is a request for an enhancement.
type: refactor
The issue/PR is related to refactoring.
Summary
The "Remove Item" button on the Active Filters block is implemented differently between the List and Chips views.
The Chips view uses the chip component, which renders an
Icon
component from for the remove button.The List view renders an embedded SVG from the
renderRemovableListItem
util component.This results in slightly different visual output (see below) and behavior (e.g., color adjustment application).
List view:
Chip view:
Proposed solution
Ideally both views would render the same element. This would result in visual consistency between views, as well as consistent behavior when applying settings from within the editor. Additionally, this would be easier to reason about and maintain in the code base.
The text was updated successfully, but these errors were encountered: