@ministryofjustice/hmpps-mpop-frontend-components-lib 0.0.33 → 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 */
@@ -115,7 +115,17 @@
115
115
  class='govuk-link govuk-link--no-underline govuk-link--text-colour dps-alert-status dps-alert-status--risk {{ risk.badgeClass }}'
116
116
  data-qa='risk-badge-{{ risk.id }}'
117
117
  >
118
- {{ 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 %}
119
129
  </a>
120
130
  {% endfor %}
121
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.33",
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",