Add aria attributes to web search toggle

This commit is contained in:
jupal 2026-03-28 05:08:20 -04:00
parent 947def5c4a
commit 6fe2f6fc90

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",