core
core copied to clipboard
[CD]: Remove Clear "X" Button from PrimeNG MultiSelect Filter
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
- Go to
/dotAdmin/#/content-drive - Open any MultiSelect component.
- Notice the "X" (clear) button next to the filter input.
- This element should not appear per design requirements.
Proposed Solution
- Use the provided
ng-templatecustomization 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
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
PRs linked to this issue
PRs linked to this issue
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:
- 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.
- Filter by a single Base Type.
- Filter by a multiple Base Type.
- Filter by a single Content Type.
- Filter by a multiple Content Type.
- Filter by a single Locale.
- Filter by Base Type and Content Type.
- Filter by Base Type, Content Type and Locale.
For the steps 2 to 8 the Expected result is the no affectation of the filtering.