From 4feda4cf0ea6b3fa800f442aa7ff8f838450a424 Mon Sep 17 00:00:00 2001
From: kaftarmery
{
})}
>
Learn more
+ about keyless mode in Clerk
>
)}
@@ -332,7 +335,7 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => {
max-width: 14.625rem;
padding: 0.25rem 0.625rem;
border-radius: 1rem;
- font-size: 0.75rem;
+ font-size: 0.875rem;
font-weight: 500;
letter-spacing: 0.12px;
color: white;
From a5c87f880f4f8a4cc077660efc592fec4b245c10 Mon Sep 17 00:00:00 2001
From: kaftarmery
+
- {claimed ? (
- <>
- You claimed this application, but haven't set keys in your environment. Get your keys from the
- Clerk Dashboard.
- >
- ) : (
- <>
- API keys were missing so we generated them for you. Link this instance to your Clerk account to make
- configuration changes.{' '}
- ({
- color: t.colors.$whiteAlpha600,
- textDecoration: 'underline solid',
- transition: `${t.transitionTiming.$common} ${t.transitionDuration.$fast}`,
- ':hover': {
- color: t.colors.$whiteAlpha800,
- },
- })}
- >
- Learn more
- about keyless mode in Clerk
-
- >
- )}
-
{ }; } + @media (prefers-reduced-motion: reduce) { + &::after, + &::before { + animation: none; + background: transparent; + } + } + @keyframes text-shimmer { 0% { background-position: 120% center; @@ -257,176 +292,176 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => { } } `} - @keyframes show-title { - from { - transform: translateY(-1.5px); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; + @keyframes show-title { + from { + transform: translateY(-1.5px); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } } - } - `} - > - {claimed ? 'Missing environment keys' : 'Clerk is in keyless mode'} -
+ `} + > + {claimed ? 'Missing environment keys' : 'Clerk is in keyless mode'} + ++
- {claimed ? ( - <> - You claimed this application, but haven't set keys in your environment. Get your keys from the - Clerk Dashboard. - > - ) : ( - <> - API keys were missing so we generated them for you. Link this instance to your Clerk account to make - configuration changes.{' '} - ({ - color: t.colors.$whiteAlpha600, - textDecoration: 'underline solid', - transition: `${t.transitionTiming.$common} ${t.transitionDuration.$fast}`, - ':hover': { - color: t.colors.$whiteAlpha800, - }, - })} - > - Learn more - - > - )} -
-Date: Fri, 20 Dec 2024 11:45:41 +0300 Subject: [PATCH 10/15] Improvements --- .../src/ui/components/KeylessPrompt/index.tsx | 121 +++++++++--------- 1 file changed, 57 insertions(+), 64 deletions(-) diff --git a/packages/clerk-js/src/ui/components/KeylessPrompt/index.tsx b/packages/clerk-js/src/ui/components/KeylessPrompt/index.tsx index 811d2be1a8..c5139de134 100644 --- a/packages/clerk-js/src/ui/components/KeylessPrompt/index.tsx +++ b/packages/clerk-js/src/ui/components/KeylessPrompt/index.tsx @@ -39,8 +39,7 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => { background: 'linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%), #1f1f1f', boxShadow: '0px 0px 0px 0.5px #2f3037 inset, 0px 1px 0px 0px rgba(255, 255, 255, 0.08) inset, 0px 0px 1px 1px rgba(255, 255, 255, 0.15) inset, 0px 0px 1px 0px rgba(255, 255, 255, 0.72), 0px 16px 36px -6px rgba(0, 0, 0, 0.36), 0px 6px 16px -2px rgba(0, 0, 0, 0.2)', - - transition: 'all 310ms cubic-bezier(0.2, 0.98, 0.1, 1)', + transition: 'all 290ms cubic-bezier(0.2, 0.98, 0.1, 1)', '&[data-expanded="true"]': { flexDirection: 'column', @@ -52,9 +51,7 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => { gap: `${t.space.$1x5}`, padding: `${t.space.$2x5} ${t.space.$3} 3.25rem ${t.space.$3}`, borderRadius: `${t.radii.$xl}`, - transition: 'all 210ms cubic-bezier(0.4, 1, 0.20, 0.9)', - - id: 'keyless-prompt', + transition: 'all 205ms cubic-bezier(0.4, 1, 0.20, 0.9)', }, })} > @@ -278,8 +275,7 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => { height='1rem' viewBox='0 0 16 16' fill='none' - aria-hidden={!isExpanded || claimed} - aria-label='Minimize keyless overlay' + aria-hidden xmlns='http://www.w3.org/2000/svg' css={css` color: #8c8c8c; @@ -312,66 +308,64 @@ const _KeylessPrompt = (_props: KeylessPromptProps) => { - {isExpanded && ( -
+
- {claimed ? ( - <> - You claimed this application, but haven't set keys in your environment. Get your keys from the - Clerk Dashboard. - > - ) : ( - <> - We generated temporary API keys for you. Link this instance to your Clerk account to configure it.{' '} - ({ - color: t.colors.$whiteAlpha600, - textDecoration: 'underline solid', - transition: `${t.transitionTiming.$common} ${t.transitionDuration.$fast}`, - ':hover': { - color: t.colors.$whiteAlpha800, - }, - })} - > - Learn more - - > - )} -
-