-
Notifications
You must be signed in to change notification settings - Fork 13.4k
feat(radio-group): remove radio-group-wrapper and convert to shadow DOM #30835
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
brandyscarney
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.
Looking good, just a few requests!
Co-authored-by: Brandy Smith <[email protected]>
|
|
||
| ion-radio-group { | ||
| // Prevents additional pixels from being rendered on top | ||
| vertical-align: top; |
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.
This became unnecessary by introducing display: block
| .radio-group-top { | ||
| @include globals.typography(globals.$ion-body-sm-medium); | ||
|
|
||
| margin-bottom: globals.$ion-space-400; |
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.
This margin was being overridden on the OS side, thus this style makes no sense to exist here. Will remove the override as well.
brandyscarney
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.
LGTM! Great work! 🚀
Can we add a section in the breaking changes document that radio group has been converted to shadow: https://github.com/ionic-team/ionic-framework/blob/next/BREAKING.md
Here's an example of when we converted modal in v6: https://github.com/ionic-team/ionic-framework/blob/next/BREAKING_ARCHIVE/v6.md#modal
Issue number: internal
What is the current behavior?
The radio-group's wrapper div is responsible for several issues that have been reported, specially due to making it so that radio elements are not direct children of radio-groups. Now it is also causing problems on the OutSystems side.
What is the new behavior?
The solution involved:
Does this introduce a breaking change?
Other information