Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fair-singers-consent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/ui': patch
---

Fix the legal consent checkbox growing in size when its label wraps to a second line while using the `simple` theme. The checkbox is now aligned to the start of the row so it no longer stretches to match the label height.
4 changes: 4 additions & 0 deletions packages/clerk-js/sandbox/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ async function initControls() {
.addBinding(PARAMS, 'baseTheme', {
options: {
default: '',
clerk: 'clerk',
simple: 'simple',
dark: 'dark',
shadesOfPurple: 'shadesOfPurple',
neobrutalism: 'neobrutalism',
Expand Down Expand Up @@ -357,6 +359,8 @@ async function initControls() {
}

const themes: Record<string, unknown> = {
clerk: 'clerk',
simple: 'simple',
dark,
shadesOfPurple,
neobrutalism,
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/src/elements/LegalConsentCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export const LegalCheckbox = (

return (
<Field.Root {...props}>
<Flex justify='center'>
<Flex
justify='center'
align='start'
>
<Field.CheckboxIndicator
elementDescriptor={descriptors.formFieldCheckboxInput}
elementId={descriptors.formFieldInput.setId('legalAccepted')}
Expand Down
Loading