-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material-experimental/mdc-radio): avoid bundling styles from base radio button #19032
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
… radio button The MDC-based radio button currently extends the `MatRadioButton` directly which means that the styles and template from the base will be bundled together with the MDC one. These changes move all of the functionality into an undecorated base class which is then extended by the two button variants.
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.
Ah, I'm sure this explains some of the size regression we saw. Good catch!
@@ -328,38 +328,13 @@ const _MatRadioButtonMixinBase: | |||
mixinDisableRipple(mixinTabIndex(MatRadioButtonBase)); | |||
|
|||
/** | |||
* A Material design radio-button. Typically placed inside of `<mat-radio-group>` elements. | |||
* Base class with all of the `MatRadioButton` functionality. | |||
* @docs-private |
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.
FWIW: docs-private
should not be needed here as the class is prefixed with an underscore. Doesn't hurt though.
… radio button (#19032) The MDC-based radio button currently extends the `MatRadioButton` directly which means that the styles and template from the base will be bundled together with the MDC one. These changes move all of the functionality into an undecorated base class which is then extended by the two button variants. (cherry picked from commit 506b74a)
… radio button (angular#19032) The MDC-based radio button currently extends the `MatRadioButton` directly which means that the styles and template from the base will be bundled together with the MDC one. These changes move all of the functionality into an undecorated base class which is then extended by the two button variants.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The MDC-based radio button currently extends the
MatRadioButton
directly which means that the styles and template from the base will be bundled together with the MDC one. These changes move all of the functionality into an undecorated base class which is then extended by the two button variants.