Skip to content

Commit

Permalink
Prettier FTW
Browse files Browse the repository at this point in the history
  • Loading branch information
pflynny committed Aug 2, 2023
1 parent 64ce212 commit 93c6291
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions app/components/card/card-with-arrow.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

<div class="nhsuk-width-container">
<main class="nhsuk-main-wrapper" id="maincontent">

<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">

{{ card({
"href": "#",
"arrow": "true",
Expand All @@ -19,10 +17,8 @@
"headingClasses": "nhsuk-heading-m",
"description": "A quick guide for people who have care and support needs and their carers"
}) }}

</div>
</div>

</main>
</div>

Expand Down
4 changes: 2 additions & 2 deletions packages/components/card/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,9 @@ The card Nunjucks macro takes the following arguments:
| **headingLevel** | integer | No | Optional heading level for the card heading. Default: 2 |
| **href** | string | No | The value of the card href attribute |
| **clickable** | boolean | No | If set to true, then the class `nhsuk-card--clickable` will be applied. |
| **arrow** | boolean | No | If set to true, then the class `nhsuk-card__content--arrow` will be applied. |
| **arrow** | boolean | No | If set to true, then the class `nhsuk-card__content--arrow` will be applied. |
| **feature** | boolean | No | If set to true, then the class `nhsuk-card__heading--feature` and `nhsuk-card__content--feature` will be applied. |
| **tranparent** | boolean | No | If set to true, then the class `nhsuk-card--transparent` and `nhsuk-card__content--transparent` will be applied. |
| **tranparent** | boolean | No | If set to true, then the class `nhsuk-card--transparent` and `nhsuk-card__content--transparent` will be applied. |
| **type** | string | No | Care card component variant type - non-urgent, urgent or emergency |
| **imgURL** | string | No | The URL of the image in the card |
| **imgALT** | string | No | The alternative text of the image in the card |
Expand Down
6 changes: 2 additions & 4 deletions packages/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,13 @@ $card-border-hover-color: $color_nhsuk-grey-3;
.nhsuk-icon {
display: block;
fill: $color_nhsuk-blue;
margin-top: - nhsuk-spacing(2);
margin-top: -nhsuk-spacing(2);
position: absolute;
right: nhsuk-spacing(4);
top: 50%;
}

}


/* Card transparent
========================================================================== */

Expand All @@ -310,4 +308,4 @@ $card-border-hover-color: $color_nhsuk-grey-3;
padding-left: 0;
padding-right: 0;
padding-top: 0;
}
}

0 comments on commit 93c6291

Please sign in to comment.