Skip to content

🎨 Palette: Conditionally render search clear icon and fix filter reset#387

Draft
yeboster wants to merge 1 commit into
mainfrom
palette-search-trailing-icon-8164934079318432726
Draft

🎨 Palette: Conditionally render search clear icon and fix filter reset#387
yeboster wants to merge 1 commit into
mainfrom
palette-search-trailing-icon-8164934079318432726

Conversation

@yeboster

@yeboster yeboster commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

💡 What:

  • Updated the search Textfield in src/routes/profile/+page.svelte to conditionally render its trailing 'clear' icon only when there is text in the search input.
  • Changed the icon button's aria-label from "cancel" to "clear search".
  • Fixed a bug where clearing the search field (e.g., via backspace) did not reset the domainsFiltered array back to the full list of domains.

🎯 Why:
Previously, the clear button was always present in the DOM. Even if the search input was empty (meaning there was nothing to clear), the button could still be reached via keyboard navigation (tabbing), which is confusing for screen reader users and keyboard navigators. Additionally, the label "cancel" is ambiguous; "clear search" explicitly states the button's purpose. Finally, clearing the search input via keyboard backspaces left the filtered list stuck on the results of the last typed character, preventing users from easily viewing all their domains without refreshing.

Accessibility:

  • The clear button is now removed from the focus order when the input is empty.
  • The aria-label is much more descriptive ("clear search" vs "cancel").
  • The DOM updates properly because withTrailingIcon is bound to the same condition.

PR created automatically by Jules for task 8164934079318432726 started by @yeboster

- Conditionally render the 'clear' trailing icon in the profile search text field so it isn't focusable when empty.
- Change the aria-label of the clear icon from a generic 'cancel' to a more descriptive 'clear search'.
- Fix the reactivity of the domain filter so it resets to the full list when the search input becomes empty.

Co-authored-by: yeboster <[email protected]>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment Jul 1, 2026 7:47pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant