Skip to content

Commit

Permalink
fix(media-card): lintfix
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Aug 28, 2020
1 parent 26a8668 commit 6dec26b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/gds-media-card/gds-media-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
}

.headline,
::slotted([slot="headline"]) {
::slotted([slot='headline']) {
display: block;

@include headline;
}

.description,
::slotted([slot="description"]) {
::slotted([slot='description']) {
display: block;

@include description;
Expand All @@ -43,7 +43,7 @@
margin-block-end: 0;
}

::slotted([slot="tags"]) {
::slotted([slot='tags']) {
display: block;

@include tags;
Expand Down
12 changes: 10 additions & 2 deletions src/components/gds-media-card/gds-media-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,19 @@ export class GdsMediaCard {
</div>
<div class="content">
<slot name="headline">
{this.headline && <gds-heading size="s" class="headline">{this.headline}</gds-heading>}
{this.headline && (
<gds-heading size="s" class="headline">
{this.headline}
</gds-heading>
)}
</slot>

<slot name="description">
{this.description && <gds-paragraph size="l" class="description">{this.description}</gds-paragraph>}
{this.description && (
<gds-paragraph size="l" class="description">
{this.description}
</gds-paragraph>
)}
</slot>

<slot name="tags"></slot>
Expand Down

0 comments on commit 6dec26b

Please sign in to comment.