Merge pull request #1026 from Judel777/feat/aria-web-search-toggle-clean

Add aria-label and aria-pressed to web search toggle
This commit is contained in:
Rohan Verma 2026-03-28 16:53:00 -07:00 committed by GitHub
commit b72424a3f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -944,6 +944,8 @@ const ComposerAction: FC<ComposerActionProps> = ({ isBlockedByOtherUser = false
{hasWebSearchTool && (
<button
type="button"
aria-label={isWebSearchEnabled ? "Disable web search" : "Enable web search"}
aria-pressed={isWebSearchEnabled}
onClick={() => toggleTool("web_search")}
className={cn(
"rounded-full transition-all flex items-center gap-1 px-2 py-1 border h-8 select-none",