@ministryofjustice/hmpps-connect-dps-shared-items 4.3.0 → 4.3.1

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.
@@ -337,7 +337,7 @@ export class AutosuggestUi {
337
337
  option.classList.add(`${this.stylingBaseClass}${classSuffixOptionFocused}`)
338
338
  option.setAttribute('aria-selected', true)
339
339
  this.input.setAttribute('aria-activedescendant', option.getAttribute('id'))
340
- const optionText = option.innerHTML.replace('<strong>', '').replace('</strong>', '')
340
+ const optionText = option.innerHTML.replace('<b>', '').replace('</b>', '')
341
341
  this.setAriaStatus(optionText)
342
342
  } else {
343
343
  option.classList.remove(`${this.stylingBaseClass}${classSuffixOptionFocused}`)
@@ -385,7 +385,7 @@ export class AutosuggestUi {
385
385
  .split(' ')
386
386
  .reduce((accumulator, currentValue) => {
387
387
  let reg = new RegExp(`(?<!<)${currentValue}(?![\\w\\s]*>)`, 'gi')
388
- return accumulator.replace(reg, '<strong>$&</strong>')
388
+ return accumulator.replace(reg, '<b>$&</b>')
389
389
  }, string)
390
390
  }
391
391
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-connect-dps-shared-items",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "A package to share Connect DPS functionality across applications",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.esm.js",