You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
checkbox. Release 1.1.0-rc.5. Chrome v.52. Label is not centered #9351
I use your latest Angular Material Release 1.1.0-rc.5.
And your official codepen. Windows 10. Chrome Version 52.0.2743.116 m
When I resize a window or simply checkbox parent container. Label position is calculated wrong.
It seems like the trouble is in fractional numbers. And Chrome has issues with it.
Because if I increase width of checkbox container in 1px alignment is perfect.
changed the title [-]md-checkbox. Release 1.1.0-rc.5. Chrome v.52. Label is not centered[/-][+]checkbox. Release 1.1.0-rc.5. Chrome v.52. Label is not centered[/+]on Feb 23, 2019
Activity
clshortfuse commentedon Aug 19, 2016
There won't be any fractional numbers when we change checkbox's size to 18px in #8713. Currently, it's 20px which doesn't divide into whole numbers.
Edit: I will add though, that checkbox labels aren't supposed to be centered according to spec. They're supposed to align to the top. See https://material.google.com/components/text-fields.html#text-fields-single-line-text-field (picture on left)
ThomasBurleson commentedon Aug 22, 2016
@clshortfuse - what is the PR #?
clshortfuse commentedon Aug 22, 2016
@ThomasBurleson Sorry, was embedded in the text:
PR: #8713
fix(checkbox) update CSS to match spec
fix(checkbox) update CSS to match spec
[-]md-checkbox. Release 1.1.0-rc.5. Chrome v.52. Label is not centered[/-][+]checkbox. Release 1.1.0-rc.5. Chrome v.52. Label is not centered[/+]fix(checkbox) update CSS to match spec
fix(checkbox) update CSS to match spec
fix(checkbox) update CSS to match spec
fix(checkbox) update CSS to match spec
fix(checkbox) update CSS to match spec