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 and CheckBoxGroup can accept children now #5460

Merged
merged 11 commits into from Aug 4, 2021
Merged

CheckBox and CheckBoxGroup can accept children now #5460

merged 11 commits into from Aug 4, 2021

Conversation

g4rry420
Copy link
Contributor

Signed-off-by: gurkiran_singh gurkiransinghk@gmail.com

What does this PR do?

CheckBox and CheckBoxGroup can accept children now

Where should the reviewer start?

Components => CheckBox and CheckBoxGroup

What testing has been done on this PR?

Added story Children in both CheckBox and CheckBoxGroup

How should this be manually tested?

Using Storybook

Any background context you want to provide?

N/A

What are the relevant issues?

#5221

Screenshots (if appropriate)

N/A

Do the grommet docs need to be updated?

Yes, I already did that

Should this PR be mentioned in the release notes?

Is this change backwards compatible or is it a breaking change?

backwards compatiable

Signed-off-by: gurkiran_singh <gurkiransinghk@gmail.com>
… object

Signed-off-by: gurkiran_singh <gurkiransinghk@gmail.com>
@jcfilben
Copy link
Collaborator

Docs should be updated on grommet-site repo since CheckBox and CheckBoxGroup docs have been transitioned to the new format. See grommet/grommet-site#233 for more info

Signed-off-by: gurkiran_singh <gurkiransinghk@gmail.com>
Signed-off-by: gurkiran_singh <gurkiransinghk@gmail.com>
@jcfilben jcfilben self-requested a review July 28, 2021 16:06
Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

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

Looks good to me

src/js/components/CheckBox/CheckBox.js Show resolved Hide resolved
src/js/components/CheckBox/CheckBox.js Outdated Show resolved Hide resolved
src/js/components/CheckBoxGroup/doc.js Outdated Show resolved Hide resolved
g4rry420 and others added 4 commits August 3, 2021 10:44
Co-authored-by: Eric Soderberg <eric.soderberg@hpe.com>
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
Copy link
Member

@ericsoderberghp ericsoderberghp left a comment

Choose a reason for hiding this comment

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

very close

src/js/components/CheckBox/CheckBox.js Outdated Show resolved Hide resolved
@@ -21,6 +21,14 @@ export const doc = (CheckBox) => {
checked: PropTypes.bool
.description('Same as React <input checked={} />')
.defaultValue(false),
children: PropTypes.func.description(
Copy link
Member

Choose a reason for hiding this comment

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

@@ -13,6 +13,15 @@ export const doc = CheckBoxGroup => {
.intrinsicElement('div');

DocumentedCheckBoxGroup.propTypes = {
children: PropTypes.func.description(
Copy link
Member

Choose a reason for hiding this comment

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

Co-authored-by: Eric Soderberg <eric.soderberg@hpe.com>
@ericsoderberghp ericsoderberghp merged commit 3dedc59 into grommet:master Aug 4, 2021
@ericsoderberghp
Copy link
Member

Thanks for your contribution!

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.

None yet

3 participants