Tabs Change history

Date Changed Description
Aug 2024 GOV.UK Frontend v5.5.0

Removed ‘up’ and ‘down’ arrow key bindings to prevent issues with screen reader navigation.

Aug 2023 Guidance

Added guidance on including a heading inside each tab to help with navigation on smaller screens.

Mar 2023 Guidance

Added guidance on using URL hashes to navigate between tabs.

Aug 2022 GOV.UK Frontend v4.3.0

Fixed incorrect styling on content passed using the text parameter.

Dec 2021 Guidance

Updated section on when to use Tabs, Accordion or Details to be more concise.

Jul 2019 GOV.UK Frontend v3.0.0

Updated focus style to comply with WCAG 2.1.

Changed CSS class for a ‘selected’ tab from govuk-tabs__tab--sected to govuk-tabs__list-item--selected.

Fixed styling of progressively enhanced tabs to be consistent with other lists in GOV.UK Frontend.

Fixed tab selection breaking when there is additional HTML inside a tab.

Fixed keyboard navigation bug in Internet Explorer 8.

Mar 2019 GOV.UK Frontend v2.9.0

Fixed bullet point character encoding in progressively enhanced tabs.

Jan 2019 Guidance

Added section on when to use Tabs rather than the Accordion or Details components for hiding content for a user to reveal.

Nov 2018 GOV.UK Frontend v2.3.0

Fixed issue with links to tabs being able to open tabs in other Tabs component instances.

Oct 2018 Guidance

Added more detailed guidance on how the component behaves without JavaScript.

Sept 2018 GOV.UK Frontend v2.1.0

Added ability to pass attributes to tab links and panels.

Jul 2018 GOV.UK Frontend v1.2.0

Updated styling of hidden panels to use the component-specific class govuk-tabs__panel--hidden rather than js-hidden to prevent conflict with other global styles.

Jul 2018 GOV.UK Frontend v1.1.1

Updated component padding to be more uniform on all sides.

Jul 2018 GOV.UK Frontend v3.5.0

Fixed component JavaScript throwing errors in Internet Explorer 8.

Jul 2018 GOV.UK Frontend v1.1.0

Added bottom margin for consistency with other components.

Jun 2018 GOV.UK Frontend v1.0.0

Component introduced.