Select Change history

Date Changed Description
Mar 2025 GOV.UK Frontend v5.9.0

The id parameter now defaults to match name if an id is not provided.

Oct 2024 Guidance

Expanded guidance on writing hint text.

Dec 2023 GOV.UK Frontend v5.0.0

Updated how the Select Nunjucks macro handles options without a value provided. The value would previously be set to an empty string.

As of 5.0.0, the HTML attribute is not set and the control’s value is the same as the display text of the option, as is the case with native <select> elements.

Aug 2023 Guidance

Added guidance about error messaging.

Apr 2023 GOV.UK Frontend v4.6.0

Added disabled parameter and updated disabled styles.

Jan 2023 Guidance

Added user research indicating that users can struggle to use select controls.

Aug 2022 GOV.UK Frontend v4.3.0

Set a minimum width so that an empty Select component does not appear too small before the option list populates.

Jun 2022 GOV.UK Frontend v4.2.0

Added value parameter.

Jun 2022 Guidance

Added guidance about using hints.

Feb 2022 GOV.UK Frontend v4.0.1

Fixed component rendering with a grey background in Firefox.

Fixed component rendering with a grey background and blue text in Safari for iOS.

Sept 2021 Guidance

Added guidance about pre-selecting options.

Jul 2020 GOV.UK Frontend v3.8.0

Updated the form control’s border thickness when in the error state.

Nov 2018 GOV.UK Frontend v2.4.0

Added option to set custom classes on the formGroup.

Oct 2018 GOV.UK Frontend v2.2.0

Fixed selects with long options growing wider than the parent container.

Sept 2018 GOV.UK Frontend v2.0.0

Updated appearance so that selects are no longer the full width of the parent container.

Added parameter to pass custom HTML attributes to select options.

Jun 2018 GOV.UK Frontend v1.0.0

Component introduced.