Skip to content

Commit be32441

Browse files
committed
Fix line height and use monospace font
1 parent 84de1f0 commit be32441

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

packages/clerk-js/src/ui/components/devPrompts/EnableOrganizationsPrompt/index.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { __internal_EnableOrganizationsPromptProps } from '@clerk/shared/types';
2+
// eslint-disable-next-line no-restricted-imports
23
import { css } from '@emotion/react';
34

45
import { Modal } from '@/ui/elements/Modal';
@@ -90,6 +91,7 @@ const EnableOrganizationsPromptInternal = (props: __internal_EnableOrganizations
9091
direction='col'
9192
sx={t => ({
9293
gap: t.sizes.$0x5,
94+
maxWidth: '18.75rem',
9395
})}
9496
>
9597
<span
@@ -99,7 +101,7 @@ const EnableOrganizationsPromptInternal = (props: __internal_EnableOrganizations
99101
color: #b4b4b4;
100102
font-size: 0.8125rem;
101103
font-weight: 400;
102-
line-height: 1rem;
104+
line-height: 1.23;
103105
`,
104106
]}
105107
>
@@ -109,15 +111,14 @@ const EnableOrganizationsPromptInternal = (props: __internal_EnableOrganizations
109111
basePromptElementStyles,
110112
css`
111113
color: white;
114+
font-family: monospace;
115+
line-height: 1.23;
112116
`,
113117
]}
114118
>
115119
{ctaText}
116120
</code>{' '}
117-
{'componentName' in props ? 'component' : 'hook'},
118-
<br />
119-
you’ll need to enable the Organizations feature
120-
<br />
121+
{'componentName' in props ? 'component' : 'hook'}, you&apos;ll need to enable the Organizations feature
121122
for your app first.
122123
</span>
123124

@@ -128,7 +129,7 @@ const EnableOrganizationsPromptInternal = (props: __internal_EnableOrganizations
128129
color: #a8a8ff;
129130
font-size: inherit;
130131
font-weight: 500;
131-
line-height: 1rem;
132+
line-height: 1.5;
132133
font-size: 0.8125rem;
133134
`,
134135
]}

packages/clerk-js/src/ui/components/devPrompts/shared.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line no-restricted-imports
12
import { css } from '@emotion/react';
23

34
import { Flex } from '@/ui/customizables';

0 commit comments

Comments
 (0)