Skip to content

MD-Checkbox Without Label has Different Vertical Alignment #813

@ijager

Description

@ijager

Bug:

When I don't provide text between the <md-checkbox></md-checkbox> tags the vertical alignment is different then when text is provided <md-checkbox> my-text </md-checkbox>

What is the expected behavior?

I would expect that checkbox alignment does not depend on the presence of a label.

What are the steps to reproduce?

See this plunker: https://plnkr.co/edit/kbBb7a?p=preview

What is the use-case or motivation for changing an existing behavior?

I want to use md-checkbox in a html <table>, therefore I don't need a label since the table header already takes care of that.

Which versions of Angular, Material, OS, browsers are affected?

Angular RC.x, Material Alpha.6, all browsers

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions