Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

md-checkbox doesn't center properly when md-label is blank #3793

Closed

Description

@clshortfuse

Because md-checkbox has padding to fix alignment with the its md-label child, it will this will add an additional space. md-label has a margin-left:18px value which means it will, at minimum have 18px width. This will forcelly "pad" the parent md-checkbox element by 18px regardless of content inside.

removed my fix since it didn't work

I'm creating test code right now. This may need to be done to radiobutton as well (I haven't checked, but will with my test code).

Test: http://codepen.io/anon/pen/oXMpXP

Activity

  1. clshortfuse commented on Jul 17, 2015

    @clshortfuse
    ContributorAuthor

    I wrote a fix and it works, but feels really hacky:

    http://codepen.io/anon/pen/rVrpmp

    md-checkbox {
    padding-left: 8px;
    }

    md-checkbox .md-container {
    margin-left: 5px;
    }

    md-checkbox .md-label {
    margin-left: 20px;
    }

  2. modified the milestone: on Jul 31, 2015
  3. modified the milestones: , on Aug 10, 2015
  4. modified the milestones: , on Sep 4, 2015
  5. modified the milestones: , on Jan 5, 2016
  6. added
    P4: minor
    and removed on Jan 15, 2016
  7. modified the milestones: , Deprecated on Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4: minor

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions