mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
chore(studio): drop redundant tabIndex from inline-link buttons
Buttons are keyboard-focusable by default; the explicit tabIndex={0} on
the three mode-switch links was a no-op.
This commit is contained in:
3 files changed
+1
-8
No files matched your search
-1
@@ -120,7 +120,6 @@ export const NewScopedTokenForm = ({
|
||||
onClick={() =>
|
||||
form.setValue('resourceAccess', 'project', { shouldValidate: true })
|
||||
}
|
||||
tabIndex={0}
|
||||
>
|
||||
Create scoped token
|
||||
</button>
|
||||
|
||||
-1
@@ -268,7 +268,6 @@ export const NewScopedTokenFormReview = ({
|
||||
type="button"
|
||||
className={InlineLinkClassName}
|
||||
onClick={onSelectLegacyToken}
|
||||
tabIndex={0}
|
||||
>
|
||||
create a legacy token
|
||||
</button>
|
||||
|
||||
+1
-6
@@ -106,12 +106,7 @@ export const ResourceAccessStep = ({
|
||||
description={
|
||||
<p className="text-foreground-lighter text-sm">
|
||||
Need a token with full access to your account or one for the Supabase MCP server?{' '}
|
||||
<button
|
||||
type="button"
|
||||
className={InlineLinkClassName}
|
||||
onClick={onSelectLegacyToken}
|
||||
tabIndex={0}
|
||||
>
|
||||
<button type="button" className={InlineLinkClassName} onClick={onSelectLegacyToken}>
|
||||
Create legacy token
|
||||
</button>
|
||||
</p>
|
||||
|
||||
Reference in new issue
Block a user