Skip to content

fix: Checkbox and Radio margins, docs, and typography #897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 22, 2020

Conversation

lazd
Copy link
Member

@lazd lazd commented Sep 9, 2020

Description

This PR fixes up Checkbox and Radio's margins, docs, and typography.

It addresses #243 by setting text styles on the label of the Checkbox/Radio explicitly, instead of relying on inheritance.

It addresses #124 by removing margin from Checkbox/Radio, instead making FieldGroup required to add the margin. THIS IS A BREAKING CHANGE.

#707 is addressed by adding columns for default, invalid, and disabled for Checkbox/Radio, and moving the wrapping example to its own section.

#484 is fixed as a dep was missing from Form.

How and where has this been tested?

  • How this was tested: big time scrolly scroll
  • Browser(s) and OS(s) this was tested with: Chrome on macOS

Screenshots

image
image

To-do list

  • If my change impacts other components, I have tested to make sure they don't break.
    • Components that use Checkbox need to be tested to ensure that removing margin did not break their layout
    • Ensure left indentation of Checkbox/Radio matches expectations
  • If my change impacts documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • This pull request is ready to merge.

@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@lazd lazd changed the base branch from main to spectrum-tokens-17 September 22, 2020 17:56
@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@lazd lazd force-pushed the checkyradiofieldy branch from 6cfb186 to 7e3982c Compare September 22, 2020 18:26
@lazd lazd force-pushed the checkyradiofieldy branch from 7e3982c to 3da1518 Compare September 22, 2020 18:34
@lazd lazd marked this pull request as ready for review September 22, 2020 18:35
@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@jianliao
Copy link
Contributor

VRT successfully, result is here

Not sure why adobe-spectrum-bot is unable to post the message here.

@jianliao
Copy link
Contributor

LGTM

@GarthDB GarthDB merged commit a089ce0 into spectrum-tokens-17 Sep 22, 2020
@GarthDB GarthDB deleted the checkyradiofieldy branch September 22, 2020 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants