Skip to content
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

[Checkbox] Propagate attributes #116

Merged
merged 2 commits into from
Aug 9, 2023
Merged

[Checkbox] Propagate attributes #116

merged 2 commits into from
Aug 9, 2023

Conversation

meissadia
Copy link
Contributor

Closes #115

  • Integrate passed className into class derivation logic
  • update tests

How to test this PR

  1. yarn && yarn start
  2. yarn vitest Checkbox

@netlify
Copy link

netlify bot commented Aug 4, 2023

Deploy Preview for cfpb-design-stories ready!

Name Link
🔨 Latest commit 007a52c
🔍 Latest deploy log https://app.netlify.com/sites/cfpb-design-stories/deploys/64cd3e841fc9cb00089946ef
😎 Deploy Preview https://deploy-preview-116--cfpb-design-stories.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@meissadia meissadia enabled auto-merge (squash) August 4, 2023 18:08
@@ -28,41 +26,45 @@ export const Checkbox = ({
defaultChecked = false,
helperText,
inputRef,
isDisabled = false,
disabled = false,
Copy link
Member

Choose a reason for hiding this comment

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

Is this prop necessary or can it be deleted a la buttons?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It needs to stay because we are passing that attribute separately to the <input> element, while the the rest of the props are passed to the wrapper <div>

@meissadia meissadia merged commit e50b2ae into main Aug 9, 2023
10 checks passed
@meissadia meissadia deleted the 115-checkbox-propagate branch August 9, 2023 20:32
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.

[Checkbox] Propagate all supported properties to underlying HTML elements
2 participants