File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
packages/core/addon/components/eui-card Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff 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
1823export 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}
You can’t perform that action at this time.
0 commit comments