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

feat: add border radius to radio button group #2503

Merged
merged 5 commits into from
Oct 28, 2022

Conversation

adrianestevez1
Copy link
Contributor

@adrianestevez1 adrianestevez1 commented Oct 24, 2022

fix: #2495

Changes proposed in this PR:

-Add border radius to radio button group

@nexxtway/react-rainbow

@commit-lint
Copy link

commit-lint bot commented Oct 24, 2022

Features

  • add borderRadius prop to RadioButtonGroup component (06a92ec)

Contributors

LeandroTorresSicilia

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@CLAassistant
Copy link

CLAassistant commented Oct 24, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ LeandroTorresSicilia
❌ Adrian Estevez


Adrian Estevez seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link

github-actions bot commented Oct 24, 2022

Visit the preview URL for this PR (updated for commit 3ea789d):

https://react-rainbow--pr2503-add-border-radius-to-8ld0gh5v.web.app

(expires Fri, 04 Nov 2022 16:01:34 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2de6d670498a0a515484c5637b13d0215372df83

{ value: 'on', label: 'On' },
];

class BorderRadiusRadioButtonGroup extends React.Component {

Choose a reason for hiding this comment

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

let's use functional components with hooks

}

handleOnChange(event) {
return this.setState({ value: event.target.value });

Choose a reason for hiding this comment

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

here we need different states for each RadioButtonGroup in order to not have that one controls all others

@adrianestevez1 adrianestevez1 force-pushed the add-border-radius-to-radio-button-group branch from 19a5dd0 to e4355a1 Compare October 28, 2022 15:45
/>
<RadioButtonGroup
label="Border Radius Rounded"
id="radio-button-group-component-1"

Choose a reason for hiding this comment

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

id here is not needed but if you will use id then they must be unique in all the page

@codeclimate
Copy link

codeclimate bot commented Oct 28, 2022

Code Climate has analyzed commit 3ea789d and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

View more on Code Climate.

@LeandroTorresSicilia LeandroTorresSicilia merged commit be9dc1c into master Oct 28, 2022
@LeandroTorresSicilia LeandroTorresSicilia deleted the add-border-radius-to-radio-button-group branch October 28, 2022 16:00
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.

feat: add borderRadius prop to RadioButtonGroup component
3 participants