Skip to content

Commit

Permalink
Add examples with custom html and links for each variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanita Barrett committed Oct 9, 2020
1 parent 2b3cbf3 commit 68177cb
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,25 @@ examples:
- name: with content as html
data:
contentHtml: |
<h3 class="govuk-heading-m">This publication was withdrawn on 7 March 2014</h3><p>Archived and replaced by the <a href="#">new planning guidance</a> launched 6 March 2014 on an external website</p>
<h3 class="govuk-heading-m">This publication was withdrawn on 7 March 2014</h3><p class="govuk-!-margin-0">Archived and replaced by the <a href="#" class="govuk-notification-banner__link">new planning guidance</a> launched 6 March 2014 on an external website</p>
- name: with type as success
data:
type: success
content: Email sent to [email protected]
- name: success with custom html
data:
type: success
contentHtml: |
<h3 class="govuk-heading-m">4 files uploaded</h3><ul class="govuk-!-margin-0 govuk-list"><li><a href="#" class="govuk-notification-banner__link govuk-notification-banner__link--success">government-strategy.pdf</a></li><li><a href="#" class="govuk-notification-banner__link govuk-notification-banner__link--success">government-strategy-v1.pdf</a></li></ul>
- name: with type as error
data:
type: error
content: There was a problem uploading your file. Please try again.
- name: error with custom html
data:
type: error
contentHtml: |
<p class="govuk-!-margin-0 govuk-heading-m">There was a problem uploading your file. <a href="#" class="govuk-notification-banner__link govuk-notification-banner__link--error">Please try again.</a></p>
# Hidden examples are not shown in the review app, but are used for tests and HTML fixtures

Expand Down

0 comments on commit 68177cb

Please sign in to comment.