Skip to content

Commit cae15a0

Browse files
author
shleewhite
committed
fix: classnames
1 parent c5c249c commit cae15a0

File tree

1 file changed

+10
-10
lines changed
  • website/app/components/doc/cards

1 file changed

+10
-10
lines changed

website/app/components/doc/cards/card.gts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ export interface DocCardsCardSignature {
3232
}
3333

3434
export 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}}

0 commit comments

Comments
 (0)