core icon indicating copy to clipboard operation
core copied to clipboard

[CD]: Remove Clear "X" Button from PrimeNG MultiSelect Filter

Open rjvelazco opened this issue 1 year ago • 2 comments

Problem Statement

The PrimeNG MultiSelect component displays a built-in "X" button in its filter panel. Our design team wants this removed to match our UI guidelines.

PrimeNG provides an ng-template for customizing the filter content, which we can use to remove the "X" button and keep only the search input.

Steps to Reproduce

  1. Go to /dotAdmin/#/content-drive
  2. Open any MultiSelect component.
  3. Notice the "X" (clear) button next to the filter input.
  4. This element should not appear per design requirements.

Proposed Solution

  • Use the provided ng-template customization to override the filter template.
  • Remove the "X" button, keeping only the input field.
  • Ensure no functionality is lost (users can still search/filter as expected).

Reference

Image

Acceptance Criteria

  • [ ] The "X" button is no longer visible in the MultiSelect filter panel.
  • [ ] Filtering still works as expected.
  • [ ] Visual design matches the design team’s reference.

dotCMS Version

main / trunk

Proposed Objective

User Experience & Design Consistency

Proposed Priority

Priority 3 – Average

rjvelazco avatar Sep 01 '25 14:09 rjvelazco

QA-PASSED:

In the /dotAdmin/#/content-drive path, the filters now are display without the "X" button added by PimeNG Multiselect component, as required by the UI guidelines.

Tested Scenarios:

  1. Validate that all the filters match the Figma design without the "X" button in the search input. Expected: "X" button in the search input is not displayed.
  2. Filter by a single Base Type.
  3. Filter by a multiple Base Type.
  4. Filter by a single Content Type.
  5. Filter by a multiple Content Type.
  6. Filter by a single Locale.
  7. Filter by Base Type and Content Type.
  8. Filter by Base Type, Content Type and Locale.

For the steps 2 to 8 the Expected result is the no affectation of the filtering.

dario-daza avatar Sep 19 '25 14:09 dario-daza