Skip to content

Commit

Permalink
refactor: Don't pass g-col-12 twice on mobile size
Browse files Browse the repository at this point in the history
  • Loading branch information
ChesneyJulian committed Aug 16, 2024
1 parent 2fce985 commit 55a0be2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ember/src/components/mktg/feature-list.gts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface MktgFeatureListSignature {
}

const Feature: TOC<FeatureSignature> = <template>
<p class="g-col-12 {{@class}}" ...attributes>
<p class="{{@class}}" ...attributes>
<span class="me-2 fw-bold bi {{@icon}}">{{@meta}}</span>{{@text}}
</p>
</template>;
Expand All @@ -54,7 +54,9 @@ export default class MktgFeatureList extends Component<MktgFeatureListSignature>
} else if (this.responsive.isTabletScreen && columns !== 1) {
return 'g-col-6';
} else if (columns > 2) {
return `g-col-md-6 ${columnMap[columns]}` || 'g-col-md-6';
return (
`g-col-12 g-col-md-6 ${columnMap[columns]}` || 'g-col-12 g-col-md-6'
);
}
return columnMap[columns] || 'g-col-md-6';
}
Expand Down

0 comments on commit 55a0be2

Please sign in to comment.