feat(ui): increase button and input height for larger touch targets#9063
feat(ui): increase button and input height for larger touch targets#9063prestonwebdev wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Repository UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
🦋 Changeset detectedLatest commit: 7683025 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 |
Buttons and inputs get taller by growing their default vertical padding from 6px to 7px, and to 8px on mobile (<=480px). Social provider icon buttons match the new height and their icons scale from 16px to 20px on mobile.
…typography-sizing # Conflicts: # packages/ui/src/elements/SocialButtons.tsx
13959aa to
7683025
Compare
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Description
Users reported that buttons and inputs look too small, especially on mobile. Both controls derive their height from vertical padding (no fixed height), so this bumps the default button size (
sm) and the input base padding from$1x5(6px) to a new$1x75(7px) spacing token, and to$2(8px) on mobile (≤480px) via the existingmqu.smbreakpoint — making controls a touch taller on desktop and a comfortable tap target on mobile. The$1x75token is added to the spacing scale alongside the existing granular tokens ($0x25,$3x25,$8x75).Social provider buttons are matched to the new height, and the icon-only buttons' provider glyph scales from 16px (desktop) to 20px (mobile) to stay proportional. The input
maxHeightmoves from$9(36px) to$10(40px) so the taller control keeps headroom. The compactxs/mdbutton variants and checkboxes/radios are intentionally left unchanged. This is an additive, backwards-compatible change.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude Code