Skip to content

Commit 6161fa1

Browse files
Update comments
1 parent 437b337 commit 6161fa1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/govuk-frontend/src/govuk/components/character-count/character-count.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,9 @@ export class CharacterCount extends ConfigurableComponent {
607607
* @property {TranslationPluralForms} [textareaDescription] - Message made
608608
* available to assistive technologies, if none is already present in the
609609
* HTML, to describe that the component accepts only a limited amount of
610-
* content. It is visible on the page when JavaScript is unavailable. The
611-
* component will replace the `%{count}` placeholder with the value of the
612-
* `maxlength` or `maxwords` parameter.
610+
* content. It is visible on the page if `countType` is not supported or
611+
* JavaScript is unavailable. The component will replace the `%{count}`
612+
* placeholder with the value of the `maxlength` parameter.
613613
*/
614614

615615
/**

packages/govuk-frontend/src/govuk/components/character-count/character-count.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ params:
110110
- name: textareaDescriptionText
111111
type: string
112112
required: false
113-
description: Message made available to assistive technologies to describe that the component accepts only a limited amount of content. It is visible on the page when JavaScript is unavailable. The component will replace the `%{count}` placeholder with the value of the `maxlength` parameter.
113+
description: Message made available to assistive technologies to describe that the component accepts only a limited amount of content. It is visible on the page if `countType` is not supported or JavaScript is unavailable. The component will replace the `%{count}` placeholder with the value of the `maxlength` parameter.
114114
- name: charactersUnderLimitText
115115
type: object
116116
required: false

0 commit comments

Comments
 (0)