Skip to content

Commit 4b65400

Browse files
committed
Merge branch 'gr_card_classes' of https://github.com/prysmex/ember-eui
2 parents 2e1f6d4 + 03cd7ec commit 4b65400

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/core/addon/components/eui-card/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
</span>
123123
{{/if}}
124124
{{#if (and (eq layout "vertical") (or (has-block "footer") @footer))}}
125-
<div class="euiCard__footer">
125+
<div class={{this.footerClasses}}>
126126
{{#if (has-block "footer")}}
127127
{{yield to="footer"}}
128128
{{else}}

packages/core/addon/components/eui-card/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ type EuiCardComponentArgs = {
1313
* Class that will apply to the card content section.
1414
*/
1515
contentClassName?: string;
16+
17+
/**
18+
* Class that will apply to the card footer section.
19+
*/
20+
footerClassName?: string;
1621
};
1722

1823
export default class EuiCardComponent extends Component<EuiCardComponentArgs> {
@@ -41,4 +46,8 @@ export default class EuiCardComponent extends Component<EuiCardComponentArgs> {
4146
get contentClasses(): string {
4247
return ['euiCard__content', this.args.contentClassName].join(' ');
4348
}
49+
50+
get footerClasses(): string {
51+
return ['euiCard__footer', this.args.footerClassName].join(' ');
52+
}
4453
}

0 commit comments

Comments
 (0)