Skip to content

fix(components-native): Fix styling of checkbox [JOB-152492]#2936

Merged
Aiden-Brine merged 2 commits intomasterfrom
JOB-152492/checkbox-label
Mar 3, 2026
Merged

fix(components-native): Fix styling of checkbox [JOB-152492]#2936
Aiden-Brine merged 2 commits intomasterfrom
JOB-152492/checkbox-label

Conversation

@Aiden-Brine
Copy link
Contributor

@Aiden-Brine Aiden-Brine commented Mar 3, 2026

Motivations

It was pointed out that the component height and label alignment for Checkbox do not match the Figmas.

Code:

28d663376ef52c81edac9fdf332405460e1884a7

Figma:

Screenshot 2026-03-02 at 16 29 17

Changes

Added

Added a min-height of space-largest

Changed

Changed the alignment to "center" when there is no descriptive text and kept it at "flex-start" when there is which matches the Figma designs

Testing

Check out the component in storybook and ensure it behaves as expected

Changes can be
tested via Pre-release


In Atlantis we use Github's built in pull request reviews.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 3, 2026

Deploying atlantis with  Cloudflare Pages  Cloudflare Pages

Latest commit: 31c8da6
Status: ✅  Deploy successful!
Preview URL: https://61748b35.atlantis.pages.dev
Branch Preview URL: https://job-152492-checkbox-label.atlantis.pages.dev

View logs

justifyContent: "space-between",
flexDirection: "row",
alignItems: "center",
minHeight: tokens["space-largest"],
Copy link
Contributor

@chris-at-jobber chris-at-jobber Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: there is guidance in the docs about not coupling UI element size to spacing

Image
Suggested change
minHeight: tokens["space-largest"],
minHeight: 48,

This aside, will try and test in-app for verification but the changes seem like they should resolve the issue

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, updated and merged. @chris-at-jobber once the tentpole codefreeze is over I will make sure this gets merged to JM

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

Published Pre-release for f0531e5 with versions:

  - @jobber/components-native@0.97.1-JOB-152492-f0531e5.13+f0531e50d

To install the new version(s) for Mobile run:

npm install @jobber/components-native@0.97.1-JOB-152492-f0531e5.13+f0531e50d

@Aiden-Brine Aiden-Brine changed the title fix(components): Fix styling of checkbox [JOB-152492] fix(components-native): Fix styling of checkbox [JOB-152492] Mar 3, 2026
@Aiden-Brine Aiden-Brine requested a review from a team March 3, 2026 17:03
@chris-at-jobber
Copy link
Contributor

In-app testing looks good as well and is now a clean match to the Figma ✅

Also verified some instances with description still look as expected

image

Copy link
Contributor

@chris-at-jobber chris-at-jobber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Design approved from my end

Copy link
Contributor

@nad182 nad182 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm preemptively approving this PR - chatted offline that the minHeight value would be updated to 48 according to our docs that @chris-at-jobber pointed out.

@Aiden-Brine Aiden-Brine merged commit 71313c0 into master Mar 3, 2026
15 checks passed
@Aiden-Brine Aiden-Brine deleted the JOB-152492/checkbox-label branch March 3, 2026 22:41
@chris-at-jobber
Copy link
Contributor

🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants