From ccbd0b34969818111de069cb3cdb14ed3b882585 Mon Sep 17 00:00:00 2001
From: DanielCliftonGuardian
<110032454+DanielCliftonGuardian@users.noreply.github.com>
Date: Mon, 5 Jan 2026 15:39:42 +0000
Subject: [PATCH] Fix aria-required-parent and aria-required-children
accessibility violations
---
.../Titlepiece/ExpandedNav/MoreSection.tsx | 1 -
.../Titlepiece/ExpandedNav/Pillar.tsx | 1 -
.../Titlepiece/ExpandedNav/SearchBar.tsx | 6 +++-
.../Titlepiece/ExpandedNav/Sections.tsx | 31 ++++++++++---------
4 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/MoreSection.tsx b/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/MoreSection.tsx
index 94652cc778e..d320966f203 100644
--- a/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/MoreSection.tsx
+++ b/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/MoreSection.tsx
@@ -160,7 +160,6 @@ export const MoreSection = ({
pillarDivider,
pillarDividerExtended,
]}
- role="none"
>
{links.map((link) => (
diff --git a/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/Pillar.tsx b/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/Pillar.tsx
index fe9925b3c47..8067bfe3c7f 100644
--- a/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/Pillar.tsx
+++ b/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/Pillar.tsx
@@ -190,7 +190,6 @@ export const Pillar = ({
!hasPageSkin && columnStyleFromLeftCol,
pillarDivider,
]}
- role="none"
>
{/*
IMPORTANT NOTE: Supporting NoJS and accessibility is hard.
diff --git a/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/SearchBar.tsx b/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/SearchBar.tsx
index 9b861fe9ebf..6dbf9f1178a 100644
--- a/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/SearchBar.tsx
+++ b/dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/SearchBar.tsx
@@ -91,7 +91,11 @@ const searchSubmit = css`
export const SearchBar = () => {
const searchId = 'gu-search';
return (
-