-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
fix(checkbox): align checkbox properly in item using start alignment #29850
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
// Checkboxes that are not slotted inside an item and are not used with a | ||
// stacked label should have margins equal to those of the label. | ||
:host(.in-item) .label-text-wrapper, | ||
:host(.in-item:not(.checkbox-label-placement-stacked):not([slot])) .native-wrapper { |
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.
Slotted checkboxes are excluded because the following would otherwise result in increased item height:
<ion-item>
<ion-checkbox slot="start">Start</ion-checkbox>
Checkbox
</ion-item>
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
Issue number: resolves #29837
What is the current behavior?
The checkbox is not aligned properly to the top when using a long label with
alignment="start"
inside of anion-item
:What is the new behavior?
.native-wrapper
(checkbox) as the label.Does this introduce a breaking change?
Other information
Note
The alignment on the Material Design checkbox is still slightly off. I could add margin directly to its checkbox but then it would change the margin of the checkbox in all use cases.