Skip to content

Commit

Permalink
Add plain style card fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Feb 19, 2025
1 parent eb37dcc commit 4561268
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/nationalarchives/components/card/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,16 @@
},
"html": "<article class=\"tna-card\"><h3 class=\"tna-heading-m tna-card__heading\">Card title</h3><div class=\"tna-card__image-container\"><picture class=\"tna-card__image\"><img src=\"https://loremflickr.com/640/360\" alt=\"A placeholder image\" width=\"640\" height=\"360\"></picture><div class=\"tna-chip tna-chip--green tna-card__image-label\">New</div></div><div class=\"tna-card__body\"><p>Card body</p></div></article>"
},
{
"name": "with a plain style",
"options": {
"title": "Card title",
"headingLevel": 3,
"body": "<p>Card body</p>",
"style": "plain"
},
"html": "<article class=\"tna-card tna-card--padded tna-card--plain\"><h3 class=\"tna-heading-m tna-card__heading\">Card title</h3><div class=\"tna-card__body\"><p>Card body</p></div></article>"
},
{
"name": "with a contrast style",
"options": {
Expand Down

0 comments on commit 4561268

Please sign in to comment.