Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): tab focus on generate password button (#41572)

Danny Whited71f4463e13b
diff --git a/apps/studio/components/interfaces/ProjectCreation/ComputeSizeSelector.tsx b/apps/studio/components/interfaces/ProjectCreation/ComputeSizeSelector.tsx
index 005867c36bc..6221b563f25 100644
--- a/apps/studio/components/interfaces/ProjectCreation/ComputeSizeSelector.tsx
+++ b/apps/studio/components/interfaces/ProjectCreation/ComputeSizeSelector.tsx
@@ -38,21 +38,11 @@ export const ComputeSizeSelector = ({ form }: ComputeSizeSelectorProps) => {
<>
<p>
The size for your dedicated database. You can change this later. Learn more about{' '}
- <InlineLink
- target="_blank"
- rel="noopener noreferrer"
- className="text-inherit hover:text-foreground transition-colors"
- href={`${DOCS_URL}/guides/platform/compute-add-ons`}
- >
+ <InlineLink href={`${DOCS_URL}/guides/platform/compute-add-ons`}>
compute add-ons
</InlineLink>{' '}
and{' '}
- <InlineLink
- target="_blank"
- rel="noopener noreferrer"
- className="text-inherit hover:text-foreground transition-colors"
- href={`${DOCS_URL}/guides/platform/manage-your-usage/compute`}
- >
+ <InlineLink href={`${DOCS_URL}/guides/platform/manage-your-usage/compute`}>
compute billing
</InlineLink>
.
diff --git a/apps/studio/components/ui/PasswordStrengthBar.tsx b/apps/studio/components/ui/PasswordStrengthBar.tsx
index 15e14073560..22c1a1c41c9 100644
--- a/apps/studio/components/ui/PasswordStrengthBar.tsx
+++ b/apps/studio/components/ui/PasswordStrengthBar.tsx
@@ -1,4 +1,5 @@
import { PASSWORD_STRENGTH_COLOR, PASSWORD_STRENGTH_PERCENTAGE } from 'lib/constants'
+import { InlineLinkClassName } from './InlineLink'
interface Props {
passwordStrengthScore: number
@@ -39,12 +40,9 @@ const PasswordStrengthBar = ({
? passwordStrengthMessage
: 'This is the password to your Postgres database, so it must be strong and hard to guess.') +
' '}
- <span
- className="text-inherit underline hover:text-foreground transition-colors cursor-pointer"
- onClick={generateStrongPassword}
- >
+ <button type="button" className={InlineLinkClassName} onClick={generateStrongPassword}>
Generate a password
- </span>
+ </button>
.
</p>
</>