File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
website/app/components/doc/cards Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,6 @@ export interface DocCardsCardSignature {
3232}
3333
3434export default class DocCardsCard extends Component <DocCardsCardSignature > {
35- get classNames() {
36- const classes = [' doc-cards-card' ];
37- const layout = this .args .layout ?? ' vertical' ;
38-
39- // add a class based on the @layout argument, default = 'vertical'
40- classes .push (` doc-cards-card--layout-${layout } ` );
41-
42- return classes .join (' ' );
43- }
44-
4535 get badgeType() {
4636 if (this .args .status ?.deprecated ) {
4737 return ' warning-inverted' ;
@@ -64,6 +54,16 @@ export default class DocCardsCard extends Component<DocCardsCardSignature> {
6454 return undefined ;
6555 }
6656
57+ get classNames() {
58+ const classes = [' doc-cards-card' ];
59+ const layout = this .args .layout ?? ' vertical' ;
60+
61+ // add a class based on the @layout argument, default = 'vertical'
62+ classes .push (` doc-cards-card--layout-${layout } ` );
63+
64+ return classes .join (' ' );
65+ }
66+
6767 <template >
6868 <li class ={{this .classNames }} ...attributes >
6969 {{#if @ route }}
You can’t perform that action at this time.
0 commit comments