@ministryofjustice/hmpps-mpop-frontend-components-lib 0.0.32 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,11 @@
48
48
  white-space: nowrap;
49
49
  font-weight: 400;
50
50
  text-transform: none;
51
+ &:hover {
52
+ text-decoration: underline;
53
+ text-decoration-thickness: 2px;
54
+ text-underline-offset: 2px;
55
+ }
51
56
  }
52
57
 
53
58
  /* Risk flag colours */
@@ -39,13 +39,12 @@
39
39
  </li>
40
40
 
41
41
  <li>
42
- <span class='govuk-!-font-weight-bold'>Tier:</span>
43
42
  <a
44
43
  class='govuk-link govuk-link--inverse'
45
44
  href='{{ params.historyHref }}'
46
45
  data-qa='tier'
47
46
  >
48
- {{ params.tier }}
47
+ <span class='govuk-!-font-weight-bold'>Tier:</span> {{ params.tier }}
49
48
  </a>
50
49
  </li>
51
50
 
@@ -116,7 +115,17 @@
116
115
  class='govuk-link govuk-link--no-underline govuk-link--text-colour dps-alert-status dps-alert-status--risk {{ risk.badgeClass }}'
117
116
  data-qa='risk-badge-{{ risk.id }}'
118
117
  >
119
- {{ risk.text | safe }}
118
+ {% if risk.text | replace(' - Very High', '') != risk.text %}
119
+ {{ risk.text | replace(' - Very High', ' -&nbsp;<strong>Very High</strong>') | safe }}
120
+ {% elif risk.text | replace(' - High', '') != risk.text %}
121
+ {{ risk.text | replace(' - High', ' -&nbsp;<strong>High</strong>') | safe }}
122
+ {% elif risk.text | replace(' - Medium', '') != risk.text %}
123
+ {{ risk.text | replace(' - Medium', ' -&nbsp;<strong>Medium</strong>') | safe }}
124
+ {% elif risk.text | replace(' - Low', '') != risk.text %}
125
+ {{ risk.text | replace(' - Low', ' -&nbsp;<strong>Low</strong>') | safe }}
126
+ {% else %}
127
+ {{ risk.text }}
128
+ {% endif %}
120
129
  </a>
121
130
  {% endfor %}
122
131
  {% endfor %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-mpop-frontend-components-lib",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "MPOP front-end components library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",