material icon indicating copy to clipboard operation
material copied to clipboard

md-checkbox margin-right is not right using md-primary

Open ManoloAlvarezForo opened this issue 10 years ago • 4 comments

Actual Behavior:

  • The margin right for the CheckBox using the md-primary in the md-list-item so has margin-right = 29px and width = 24px the checkbox using the md-secondary into the md-list-item uses a container with width = 24px and margin-right = 0 *
  • I think that the checkbox needs a container like the md-secondary-container maybe a _md-primary-container to follow the material design to the margin in the list items with 16px

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue:
  • `Details: I used this code:

    {{ topping.name }}

`

Angular Versions: *

  • Angular Version: 1.5.5
  • Angular Material Version: v1.1.0-rc.5

Additional Information:

  • Browser Type: *
  • Browser Version: *
  • OS: *
  • Stack Traces:

Shortcut to create a new CodePen Demo. Note: * indicates required information. Without this information, your issue may be auto-closed.

Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.

ManoloAlvarezForo avatar Jul 05 '16 20:07 ManoloAlvarezForo

Can you include a demo to help diagnose this issue better?

clshortfuse avatar Jul 08 '16 14:07 clshortfuse

http://codepen.io/anon/pen/xOPbxy here is the demo you can reproduce the observation changing the class in the checkbox to md-primary

ManoloAlvarezForo avatar Jul 11 '16 19:07 ManoloAlvarezForo

There actually isn't an issue. I know the wording is confusing, but md-secondary denotes a secondary item for an md-list-item. md-primary relates to the color for md-theme.

You should write class="md-primary md-secondary"

clshortfuse avatar Jul 11 '16 21:07 clshortfuse

Ok name is the problem has the same name to manage the theme color and the item number jeje thanks

ManoloAlvarezForo avatar Jul 11 '16 22:07 ManoloAlvarezForo