-
Notifications
You must be signed in to change notification settings - Fork 34
✨ Implement <RadioGroup /> component
#143
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
Conversation
<RadioGroup /> component
8133369 to
7f1f661
Compare
70b269c to
cfaf9a7
Compare
cfaf9a7 to
cee3ed9
Compare
dmcnamara-eng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mofiebiger I've made one request for changes, but this looks almost ready to merge 🙌
addon/components/radio-group.hbs
Outdated
| role='radiogroup' | ||
| aria-labelledby={{this.radioGroupLabel}} | ||
| aria-disabled={{@disabled}} | ||
| {{did-insert this.setTabIndex}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mofiebiger did-insert can be considered harmful. Could you convert this to a modifier?
See:
https://nullvoxpopuli.com/avoiding-lifecycle/
https://github.com/GavinJoyce/ember-headlessui/pull/116/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, if someone would be willing to totally remove @ember/render-modifiers, that would be a huge help <3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NullVoxPopuli is that best done once you've sorted the monorepo? If not, on which branch? Happy to take that job on either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think git is smart enough to figure it out, actually. shouldn't be too bad. could happen on any branch. no need to wait on me <3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmcnamara-eng, the did-insert and will-destroy lifecycle hooks are now converted to modifiers. Please see changes here: 291c4da
cee3ed9 to
291c4da
Compare
✨ What Changed and Why
This PR is a functionally complete implementation of a
<RadioGroup />component based on headlessui.dev/react/radio-groupThings that this PR implements:
😈 Before
NA
😇 After
headlessui-radio-group.mp4
🌈 Testing
phorest:feature/radio-groupCloses: #103