Skip to content

feat(mosaic): let apps replace or hide the OAuthConsent logomark - #10982

Open
alexcarpenter wants to merge 1 commit into
carp/ui-optionsfrom
carp/mosaic-options
Open

alexcarpenter wants to merge 1 commit into
carp/ui-optionsfrom
carp/mosaic-options

Conversation

@alexcarpenter

Copy link
Copy Markdown
Member

Description

Stacked on #10965.

// Before: OAuthConsent always shows the logomark or logo set in the Clerk Dashboard.
<OAuthConsent />

// After: replace it, or hide it, for every component or for one.
<MosaicProvider options={{ logomark: <Logo /> }}>
  <OAuthConsent />
  <OAuthConsent options={{ logomark: false }} />
</MosaicProvider>

Adds an options prop to MosaicProvider and OAuthConsent with one key, logomark: an element that replaces the Dashboard logomark, or false to hide it (and the arrow). A component's options override the provider's key by key.

The settings go in one options prop rather than a top-level renderLogomark prop because more are expected (elevation next; @clerk/ui groups the logo and elevation in appearance.options). Elevation is not part of this PR.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 25, 2026 9:49pm UTC
mosaic-docs Ready Ready Preview Nov 25, 2026 9:49pm UTC
swingset Ready Ready Preview Nov 25, 2026 9:49pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5bff50e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/mosaic Minor
@clerk/mosaic-docs Patch
@clerk/swingset Patch

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

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

MosaicProvider and OAuthConsent now accept an options prop with a logomark setting. The options provider inherits a parent logomark when the current options do not specify one. The logomark hook can resolve a custom React element, hide the mark when set to false, or use the existing URL fallback. OAuth consent tests cover rendering, precedence, inheritance, and hiding.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • clerk/javascript#10965: Adds Dashboard logomark display and application-logo fallback, which this change extends with replacement and hiding options.

Suggested reviewers: austincalvelage

Merge Risk: Minimal · up to 5bff5

This adds an optional options prop that lets apps replace or hide the OAuthConsent logomark. Existing behavior is unchanged when the prop is omitted. No merge-blocking risk was found. Run the build and tests before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the new options prop lets apps replace or hide the OAuthConsent logomark. The changeset adds options.logomark to MosaicProvider and OAuthConsent, and the tests cover r…
Description check Passed The description states the purpose of the change: an options prop on MosaicProvider and OAuthConsent with a logomark key that replaces the Dashboard logomark or hides it with false, plus key-by-key ov…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the new options prop lets apps replace or hide the OAuthConsent logomark. The changeset adds options.logomark to MosaicProvider and OAuthConsent, and the tests cover replacing and hiding the mark. The title is specific and matches the changeset.

Full details: Description check

Explanation

The description states the purpose of the change: an options prop on MosaicProvider and OAuthConsent with a logomark key that replaces the Dashboard logomark or hides it with false, plus key-by-key override rules. This matches the changeset. It also includes a usage example and explains why the settings sit in one options prop.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 6 repositories. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a2f1ff7 and 5bff50e.

Files selected for processing: 1

  • packages/mosaic/bundlewatch.config.json
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

@blacksmith-sh

blacksmith-sh Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Matches Provider logomark replaces the Dashboard one

MosaicProvider options.logomark showed the red custom element in place of the blue Dashboard logomark; the merge-base ignored it and kept the Dashboard one.

Merge-baseThis PR 5bff50e3
Provider logomark optionProvider logomark option

Also checked · 2 match

Matches logomark: false hides the logomark and arrow
Matches Component options override the provider key by key

Proof on 5bff50e3 · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@pkg-pr-new

pkg-pr-new Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@10982

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@10982

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@10982

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@10982

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@10982

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@10982

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@10982

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@10982

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@10982

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@10982

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@10982

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@10982

@clerk/express

npm i https://pkg.pr.new/@clerk/express@10982

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@10982

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@10982

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@10982

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@10982

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@10982

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@10982

@clerk/react

npm i https://pkg.pr.new/@clerk/react@10982

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@10982

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@10982

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@10982

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@10982

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@10982

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@10982

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@10982

commit: 5bff50e

Today OAuthConsent shows only the logomark or logo set in the Clerk
Dashboard. An app embedding it cannot show its own logomark, such as an
inline SVG or a next/image Image, and cannot hide it.

Add an options prop to MosaicProvider and OAuthConsent with one key,
logomark. A component's options override the provider's key by key, and
logomark: false hides the logomark and the arrow. Before this, these
settings would each become a top-level prop, and more are coming (such as
elevation, which @clerk/ui grouped with the logo in appearance.options).

This branch was successfully deployed

2 active deployments
Preview – swingset — 5bff50e3 Deployed Nov 25, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 5bff50e3 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants