You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+18-15Lines changed: 18 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,31 +4,34 @@ For advice on how to use these release notes see [our guidance on staying up to
4
4
5
5
## Unreleased
6
6
7
+
## GOV.UK Frontend v5.3.0 (Feature release)
8
+
7
9
### New features
8
10
9
-
#### Use the Passwords input component to help users accessibly enter passwords
11
+
#### Use the Password input component to help users accessibly enter passwords
12
+
13
+
The [Password input component](https://design-system.service.gov.uk/components/password-input/) allows users to choose:
10
14
11
-
The [Password input component](https://design-system.service.gov.uk/components/password-input/) allows users to toggle the visibility of passwords and enter their passwords in plain text if they choose to do so.
15
+
- whether their passwords are visible or not
16
+
- to enter their passwords in plain text
12
17
13
18
This helps users use longer and more complex passwords without needing to remember what they've already typed.
14
19
15
20
This change was introduced in [pull request #4442: Create password input component](https://github.com/alphagov/govuk-frontend/pull/4442). Thanks to [@andysellick](https://github.com/andysellick) for the original contribution.
16
21
17
22
### Recommended changes
18
23
19
-
#### Update the HTML for the character count
20
-
21
-
We've updated the HTML for the character count.
24
+
#### Update the HTML for the Character count component
22
25
23
-
The component wrapper `data-module="govuk-character-count"` and its form group `class="govuk-form-group"` are now combined as the same `<div>`. The hint text used as the count message is now placed directly after the `<textarea>`.
26
+
We've updated the HTML for the Character count component. The component wrapper `data-module="govuk-character-count"` and its form group `class="govuk-form-group"` are now combined as the same `<div>`. The hint text used as the count message now appears directly after the `<textarea>`.
24
27
25
28
If you're not using Nunjucks macros, then you should:
26
29
27
30
- move all classes and attributes from the form group `<div>` to the component wrapper `<div>`
28
31
- remove the opening `<div>` and closing `</div>` tags used by the form group
29
32
- check the count message is now directly after the `<textarea>`
30
33
31
-
The following example shows some HTML and the difference once it is updated.
34
+
The following example shows some HTML and the difference once it’s updated.
32
35
33
36
HTML before:
34
37
@@ -49,24 +52,24 @@ HTML after:
49
52
</div>
50
53
```
51
54
52
-
Check your changes against [the character count example in the Design System](https://design-system.service.gov.uk/components/character-count/#character-count-example) to make sure you have correctly implemented them.
55
+
Check your changes against [the Character count example in the Design System](https://design-system.service.gov.uk/components/character-count/#character-count-example) to make sure you’ve correctly implemented them.
53
56
54
57
This change was introduced in [pull request #4566: Use Character count `formGroup` as module wrapper](https://github.com/alphagov/govuk-frontend/pull/4566).
55
58
56
59
#### Remove redundant `role` attributes from elements
57
60
58
61
We've made minor changes to the HTML of the page template, as well as the header, footer and pagination components.
59
62
60
-
You can update your HTML to remove the `role` attribute from some elements. These include:
63
+
You can update your HTML to remove the `role` attribute from some elements. These include the:
61
64
62
-
- the `main` role on the `main` element in the template.
63
-
- the `banner` role on the `header` element in the header component.
64
-
- the `contentinfo` role on the `footer` element in the footer component.
65
-
- the `navigation` role on the `nav` element in the pagination component.
65
+
- `main` role on the `main` element in the template
66
+
- `banner` role on the `header` element in the Header component
67
+
- `contentinfo` role on the `footer` element in the Footer component
68
+
- `navigation` role on the `nav` element in the Pagination component
66
69
67
-
These roles were present to support legacy browsers, such as older versions of Internet Explorer. GOV.UK Frontend no longer supports these browsers, so the roles can now be removed.
70
+
These roles were present to support legacy browsers, such as older versions of Internet Explorer. GOV.UK Frontend no longer supports these browsers, so you can now remove these roles.
68
71
69
-
If you're using the Nunjucks versions of the page template or these components, you don't need to change anything.
72
+
You do not need to change anything if you're using the Nunjucks versions of the page template or these components,
70
73
71
74
This change was introduced in [pull request #4854: Remove redundant `role` attributes](https://github.com/alphagov/govuk-frontend/pull/4854).
0 commit comments