jac-uk / admin

The Vue SPA for managing applications and applicants
https://admin.judicialappointments.digital
MIT License
4 stars 2 forks source link

Add warning component #718

Closed crablab closed 4 years ago

crablab commented 4 years ago

Add the gov.uk warning component: screenshot_2020-07-30-133028

<div class="govuk-warning-text">
  <span class="govuk-warning-text__icon" aria-hidden="true">!</span>
  <strong class="govuk-warning-text__text">
    <span class="govuk-warning-text__assistive">Warning</span>
    You can be fined up to £5,000 if you do not register.
  </strong>
</div>

https://design-system.service.gov.uk/components/warning-text/

ClaireTroughtonJAC commented 4 years ago

HI @crablab I am testing this. I am supposed to see the exclamation mark or just this.

Screenshot 2020-08-03 at 16 33 32
crablab commented 4 years ago

@ClaireTroughtonJAC Nope! This is a separate component - it's not actually used in admin :see_no_evil:

It's in here because admin is currently the 'source of truth' for components we use in apply and assessments. It's one of the issues we have with code in multiple repos.

This is used in another assessment ticket (https://github.com/jac-uk/assessments/pull/58#issuecomment-667919490)