Update UI for closing filter boxes in eCR Library #2995
Labels
needs design review
The PR for this issue will need design review before merging
Streamline eCR
Issues for Streamline eCR team to work on
What needs to be done
Update the UI for closing filter boxes in the eCR Library, such that:
GIVEN that a filter box is open
WHEN a user clicks off the box (anywhere but the filter box) or clicks a different filter box
THEN the current filter box closes automatically.
Why it needs to be done
Currently, when a filter box is open, a user must click the filter button directly to close the box. This is not ideal for accessibility purposes.
Design review
Link to Figma design in Dev mode
Link to Figma prototype
Acceptance Criteria
esc
key- For example, if the user clicks on condition, the condition box will open. Then, if they clicked on the date filter button, the condition box would automatically close and the filter by date box would open.
- If a filter box is open and the reset button is clicked, then the filter box should close automatically.
Technical Notes
Relevant files:
src/app/components/Filters.tsx
The text was updated successfully, but these errors were encountered: