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.
When placing a checkbox inside a table cell, I don't want it to have a label, since the header is providing the textual context for it.
The problem is that the label has properties in its css, that makes the checkbox to be wider that it should be, so when I am centering the content of the cell, the checkbox is not entirely centered.
@TalPasi fixed this by only adding the margin if a visual label is present–it was an easy hook to differentiate between checkboxes with text vs. without.
One note: your checkbox in the table cell still needs a label for accessibility. You can do this one of two ways:
When placing a checkbox inside a table cell, I don't want it to have a label, since the header is providing the textual context for it.
The problem is that the label has properties in its css, that makes the checkbox to be wider that it should be, so when I am centering the content of the cell, the checkbox is not entirely centered.
md-checkbox .md-label {
border: 1px dotted transparent;
display: inline-block;
margin-left: 10px;
}
please check the following following for a demo of the problem: codepen
The text was updated successfully, but these errors were encountered: