Repository navigation
feat(mosaic): add flush elevation to sign-in, sign-up and OAuth consent - #10973
prestonwebdev wants to merge 5 commits into
Conversation
Card's flush elevation now drops the inner padding, the footer divider and the fixed width, filling its container up to the size width (overridable with --cl-card-flush-max-width) while keeping the branding and its divider. SignInView, SignUpView and OAuthConsent pass elevation through to the card, and the sign-in and sign-up views accept renderBranding. Swingset gets flush stories with a branding toggle. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
🦋 Changeset detectedLatest commit: b15acfc The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
|
|
Two things to change before merge: 1. Drop In a normal layout, Measured in swingset on
Fix: in 2. Remove
|
|
Minor, non-blocking: flush sets the card's top, side and bottom insets to 0, but This PR hits that case in one place. If you want it even, zero the content's top padding only when it is the card's first child. Changing it to |
…view prop Flush reuses the card size widths, so it no longer collapses to zero inside a parent that sizes to its content. SignInView and SignUpView lose renderBranding, since branding follows displayConfig.branded and has no public prop; the branding toggle stays on the OAuth consent flush story, where the story renders the card. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…der precedes it Card.Content keeps its 16px top padding only when a Card.Header comes before it. A flush card with no header, such as the sign-up loading screen, now starts at the top edge. Adds a flush loading story. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>


Description
Adds a flush presentation for the sign-in, sign-up and OAuth consent cards, so the component sits directly on the page with no surface around it.
Cardwithelevation='flush'now drops its inner padding, the footer divider and the fixed width. It fills its container up to the card'ssizewidth, and--cl-card-flush-max-widthoverrides that cap. The "Secured by Clerk" branding and the divider above it stay, and hiding the branding removes the divider with it.SignInView,SignUpViewandOAuthConsentaccept an optionalelevationand pass it to the card.SignInViewandSignUpViewalso accept an optionalrenderBranding.Cardhas no otherflushconsumers (user and organization profile use their ownelevation), so existing surfaces are unchanged.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude Code