-
Notifications
You must be signed in to change notification settings - Fork 0
🎨 Palette: Improve accessibility for OAuth docs external link button #198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -222,7 +222,12 @@ export function OAuthProvidersCard({ onError, onSuccess }: Props) { | |
| className="inline-flex" | ||
| title={`Open ${p.name} docs`} | ||
| > | ||
| <Button ghost size="icon"> | ||
| <Button | ||
| ghost | ||
| size="icon" | ||
| aria-label={`Open ${p.name} docs`} | ||
| tabIndex={-1} | ||
| > | ||
|
Comment on lines
+225
to
+230
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Do not nest an interactive button inside the documentation link.
🤖 Prompt for AI Agents |
||
| <ExternalLink /> | ||
| </Button> | ||
| </a> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Localize the accessible label.
The new
aria-labelis hardcoded in English despite this component usinguseI18n(). Add a translated “open provider docs” string and reuse it for botharia-labelandtitle.🤖 Prompt for AI Agents