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

Commit f8c003c

Browse files
Marcy SuttonThomasBurleson
authored andcommitted
fix(card): BREAKING CHANGE now md-card-actions
1 parent bf08e17 commit f8c003c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/card/card.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ angular.module('material.components.card', [
2626
* container will wrap text content and provide padding. An `<md-card-footer>` element can be
2727
* optionally included to put content flush against the bottom edge of the card.
2828
*
29-
* Action buttons can be included in an element with the `.md-actions` class, also used in `md-dialog`.
29+
* Action buttons can be included in an `<md-card-actions>` element, similar to `<md-dialog-actions>`.
3030
* You can then position buttons using layout attributes.
3131
*
3232
* Cards have constant width and variable heights; where the maximum height is limited to what can
@@ -55,10 +55,10 @@ angular.module('material.components.card', [
5555
* <h2>Card headline</h2>
5656
* <p>Card content</p>
5757
* </md-card-content>
58-
* <div class="md-actions" layout="row" layout-align="end center">
58+
* <md-card-actions layout="row" layout-align="end center">
5959
* <md-button>Action 1</md-button>
6060
* <md-button>Action 2</md-button>
61-
* </div>
61+
* </md-card-actions>
6262
* </md-card>
6363
* </hljs>
6464
*

src/components/card/card.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ md-card {
2222
padding: $card-padding;
2323
}
2424

25-
.md-actions {
25+
.md-actions, md-card-actions {
2626
margin: 0;
2727

2828
.md-button {

src/components/card/demoBasicUsage/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ <h2 class="md-title">Paracosm</h2>
1212
two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
1313
</p>
1414
</md-card-content>
15-
<div class="md-actions" layout="row" layout-align="end center">
15+
<md-card-actions layout="row" layout-align="end center">
1616
<md-button>Action 1</md-button>
1717
<md-button>Action 2</md-button>
18-
</div>
18+
</md-card-actions>
1919
</md-card>
2020
<br/>
2121

0 commit comments

Comments
 (0)