Text input change history

Date Changed Description
Jun 2026 GOV.UK Frontend v6.3.0

Fixed input prefixes and suffixes not having a text colour set, which could result in insufficient text contrast in some situations.

Jun 2026 Guidance

Changed guidance about inputmode="decimal" to suggest using it when asking for decimal numbers, unless the number can be negative.

Mar 2026 GOV.UK Frontend v6.1.0

Fixed focus state using wrong shade of black.

Mar 2025 GOV.UK Frontend v5.9.0

The id parameter now defaults to match name if an id isn’t provided.

Oct 2024 Guidance

Expanded guidance on writing and formatting hint text.

May 2024 GOV.UK Frontend v5.4.0

Fixed being unable to set the value parameter if the value was ‘0’.

Feb 2024 GOV.UK Frontend v5.2.0

Added beforeInput and afterInput slots.

Feb 2024 Guidance

Updated guidance to advise against placing complex instructions inside of hint text. Put them before the question instead. See our guidance on complex questions.

Feb 2024 GOV.UK Frontend v5.1.0

Updated positioning of input prefixes and suffixes.

Aug 2023 Guidance

Added guidance to not restrict the length of a user’s input.

Apr 2023 GOV.UK Frontend v4.6.0

Added disabled parameter and updated input disabled styles.

Added guidance and modifier class for codes and sequences.

Aug 2022 Guidance

Removed guidance on using the pattern attribute to force iOS to show a numpad. Use inputmode instead.

Aug 2022 GOV.UK Frontend v4.3.0

Updated length modifier classes to use em units.

Apr 2022 Guidance

Added guidance on use of placeholder text.

Feb 2022 Guidance

Added guidance advising to support all characters a user might reasonably need to enter when performing validation.

Sept 2020 GOV.UK Frontend v3.9.0

Added input prefixes and suffixes.

Jul 2020 GOV.UK Frontend v3.8.0

Added spellcheck parameter.

Updated input’s border thickness when in the error state.

Jun 2020 Guidance

Added guidance to advise against using inputmode="decimal" due to inconsistent behaviour across devices.

Feb 2020 Guidance

Added guidance about asking for numbers.

Sept 2019 GOV.UK Frontend v3.1.0

Added inputmode parameter.

Jul 2019 GOV.UK Frontend v3.0.0

Updated focus style to comply with WCAG 2.1.

Mar 2019 GOV.UK Frontend v2.8.0

Added pattern parameter.

Feb 2019 Guidance

Added guidance on supporting spellchecking.

Feb 2019 Guidance

Added guidance on supporting autofill using autocomplete.

Jan 2019 GOV.UK Frontend v2.6.0

Added autocomplete parameter.

Nov 2018 GOV.UK Frontend v2.4.0

Classes can now be set on the input’s formGroup.

Jun 2018 GOV.UK Frontend v1.0.0

Component introduced.