Components: Add margin to cards

Created on 25 Sep 2016  路  5Comments  路  Source: angular/components

Bug, feature request, or proposal:

Feature Request: Cards do have a margin of 8dp according to Material Design spec

What is the expected behavior?

Cards should have this margin automatically by themselves.

What is the current behavior?

Cards do not have a margin.

Most helpful comment

I don't understand.

  1. Paddings and margins are used in other components since they are necessary to style them according to the spec
  2. These margins are defaults, they can be overwritten, if the application needs that.
  3. Cards in Angular-Material 1.x do have default margins.

Generally speaking i would strongly wish for a convention over configuration approach in material2.
If you skip margins, because they depend on the application, you'll also need to skip other margins, paddings, font-sizes etc...

All 5 comments

We very intentionally do not add margins to any of our components in material2 because, in practice, this is always going to depend on the application.

I don't understand.

  1. Paddings and margins are used in other components since they are necessary to style them according to the spec
  2. These margins are defaults, they can be overwritten, if the application needs that.
  3. Cards in Angular-Material 1.x do have default margins.

Generally speaking i would strongly wish for a convention over configuration approach in material2.
If you skip margins, because they depend on the application, you'll also need to skip other margins, paddings, font-sizes etc...

lets have default and then we can override them ourselves if we dont want

yes default should have a margin. DUH. :)

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

julianobrasil picture julianobrasil  路  3Comments

theunreal picture theunreal  路  3Comments

3mp3ri0r picture 3mp3ri0r  路  3Comments

dzrust picture dzrust  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments