π¨ Palette: Add accessible 'clear' buttons to filter inputs#98
Conversation
Add accessible clear buttons to the filter text inputs in `ProjectsApp` and `BlogApp`. The buttons appear conditionally when there is a query, provide standard icon and ARIA labels, and use focus management to return the keyboard focus to the input field after clearing the text. This UX improvement provides a straightforward way for users to clear long search queries without repeated backspacing or disrupting their keyboard flow. Co-authored-by: schmug <38227427+schmug@users.noreply.github.com>
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Superseded by #127 (merged to main), which consolidated the best of the duplicate Bolt/Sentinel/Palette scheduled-agent PRs into one reviewed change. Closing as duplicate. |
This PR adds a small UX improvement by providing "Clear" buttons inside the search/filter inputs of the
ProjectsAppandBlogApp.What it does
xicon button inside the input wrapper conditionally whenquerytext is present.querystate when clicked.refon the<input>element so that focus properly returns to the input field after it is cleared, allowing users to immediately begin typing a new search string.aria-label, hidden svg icons) and focus visible states.Why
Users filtering long lists of repositories or blog posts might find manually backspacing or highlighting long inputs frustrating. A dedicated "clear" button handles this instantly, and focus management ensures the user's keyboard flow is uninterrupted.
PR created automatically by Jules for task 18320195723894452521 started by @schmug