Skip to content

feat(clerk-js,shared): expose the logo's width and height on the display config - #11075

Draft
alexcarpenter wants to merge 8 commits into
mainfrom
carp/display-config-logo-size
Draft

alexcarpenter wants to merge 8 commits into
mainfrom
carp/display-config-logo-size

Conversation

@alexcarpenter

Copy link
Copy Markdown
Member

Description

environment.displayConfig now exposes the logo's pixel size as logoImageWidth and logoImageHeight. Both read from the Frontend API's display_config.logo_image_width/logo_image_height, added in clerk/clerk_go#24842.

  • Both are number | null on the resource and default to null when the API leaves them out.
  • The JSON keys are optional because current Frontend API responses don't include them yet.
  • Additive only. No existing field is removed or renamed.
  • Stacked on feat(mosaic): add an ApplicationLogo block #11067. A follow-up can switch Mosaic's ApplicationLogo to these typed fields.

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:

Render the logo as a plain image capped at 40px tall and 160px wide.
When applicationLogo gets logoImageWidth and logoImageHeight, a CSS
aspect-ratio sets the box before the image loads. Without both, the
image takes its own size once it loads. Drops the failed-image removal
and the layout-measuring browser tests.
@vercel

vercel Bot commented Dec 1, 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 Dec 1, 2026 11:44pm UTC
mosaic-docs Ready Ready Preview Dec 1, 2026 11:44pm UTC
swingset Ready Ready Preview Dec 1, 2026 11:44pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@changeset-bot

changeset-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 16050e2

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

This PR includes changesets to release 24 packages
Name Type
@clerk/shared Minor
@clerk/clerk-js Minor
@clerk/astro Patch
@clerk/backend Patch
@clerk/chrome-extension Patch
@clerk/electron Patch
@clerk/expo-passkeys Patch
@clerk/expo Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/hono Patch
@clerk/localizations Patch
@clerk/mosaic Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/react Patch
@clerk/swingset Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/ui Patch
@clerk/vue Patch
@clerk/mosaic-docs 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

Base automatically changed from carp/mosaic-application-logo-component to main December 2, 2026 14:44

This branch was successfully deployed

2 active deployments
Preview – swingset — 16050e20 Deployed Dec 1, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 16050e20 Deployed Dec 1, 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.

1 participant