Skip to content

Commit

Permalink
Add CHANGELOG entry
Browse files Browse the repository at this point in the history
  • Loading branch information
romaricpascal committed Oct 27, 2022
1 parent 0d14ebc commit 5e49ed2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ This text is announced by screen readers when the character count input is focus

This was added in [pull request #2742: Add ability to customise character count fallback text](https://github.com/alphagov/govuk-frontend/pull/2742).

####  Localise the character count's input description for assistive technologies

When configuring the character count's limit in JavaScript, you can customise the description provided to assistive technologies when users focus the input (so it indicates the overall limit of characters or words).

You can pass the description in the HTML, using `data-i18n.fallback-hint.{other,many,few,two,one,zero}` attribute on the element, depending on the [plural form required by your locale](https://design-system.service.gov.uk/get-started/localisation/#pluralisation), to provide the text to set as the description.

You can also provide these messages using a JavaScript configuration object when creating an instance of the component or initialising all components.
See [our guidance on localising GOV.UK Frontend](https://design-system.service.gov.uk/get-started/localisation/) for how to do this.

This was added in [pull request #2915](https://github.com/alphagov/govuk-frontend/pull/2915).

#### Localise the accordion's toggle buttons

You can now translate the text of the [accordion](https://design-system.service.gov.uk/components/character-count/) component's show and hide toggle buttons.
Expand Down

0 comments on commit 5e49ed2

Please sign in to comment.