Skip to content

Add Basic Radio Spec#24

Closed
Ac-Srikanth wants to merge 1 commit intomainfrom
radio/spec
Closed

Add Basic Radio Spec#24
Ac-Srikanth wants to merge 1 commit intomainfrom
radio/spec

Conversation

@Ac-Srikanth
Copy link
Copy Markdown

@Ac-Srikanth Ac-Srikanth commented Jul 31, 2022

Description

  • Made a basic spec for radio component that can be discussed further.
  • Will Make further changes and will try and go ahead with the radio component in the same branch or anyone else can take it up.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 31, 2022

Deploy Preview for cheerful-crostata-e27410 failed.

Name Link
🔨 Latest commit c652558
🔍 Latest deploy log https://app.netlify.com/sites/cheerful-crostata-e27410/deploys/62e60a0ed323e50008e24a70

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 31, 2022

Deploy Preview for hover-design failed.

Name Link
🔨 Latest commit c652558
🔍 Latest deploy log https://app.netlify.com/sites/hover-design/deploys/62e60a0e34ca16000a44fcac

@Ac-Srikanth Ac-Srikanth requested a review from pruthvi2103 July 31, 2022 05:04
Copy link
Copy Markdown
Contributor

@pruthvi2103 pruthvi2103 left a comment

Choose a reason for hiding this comment

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

Some Comments @Ac-Srikanth

| `id` | string | Yes |
| `name` | string | No |
| `value` | string | No |
| `label` | string | No |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

label should be provided as a separate component as <Label> it helps keep label and input far away and customisable layout wise

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yeah ok that makes sense. Will change it.

| `value` | string | No |
| `label` | string | No |
| `isChecked` | boolean | No |
| `onChange` | function | No |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

other props look great, can we expose more props to customize the styling aspect of the component? eg: changing the color.

Also do we need a radioGroup? as other libraries use. Any merits demerits of those?

Copy link
Copy Markdown
Author

@Ac-Srikanth Ac-Srikanth Aug 5, 2022

Choose a reason for hiding this comment

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

@pruthvi2103

  • Yeah about the color i wanted to have a discussion . Is there a mock for different color's and how much customisation should we offer in terms of color .
  • About the Radio Group there are merits and demerits as well.
    1. Since most of the cases radio will be used in a group it makes sense.Very rarely we would use a single radio button on its own.
    2. But if do have radio group we should make it robust. Like a vertical aligned radio group, or horizontal aligned radio group and all kinds of customisation.But not really sure if this is what hover is looking for now.
    3. Yes over the long term radio group will make a lot of sense.

@pruthvi2103 pruthvi2103 mentioned this pull request Aug 2, 2022
3 tasks
@pruthvi2103
Copy link
Copy Markdown
Contributor

Please pull main into your branch and commit?

@Raalzz Raalzz marked this pull request as draft August 12, 2022 08:44
@pruthvi2103
Copy link
Copy Markdown
Contributor

closing in favour of #85

@pruthvi2103 pruthvi2103 closed this Sep 2, 2022
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.

3 participants