From 7e1830f1200dda17d4054c7b3bc921d931bdd76e Mon Sep 17 00:00:00 2001 From: abhishek kumar Date: Wed, 18 Nov 2026 17:53:17 +0530 Subject: [PATCH 1/2] Posts, Post Types: Add a presentation role to taxonomy tab list items. The taxonomy and link category meta boxes render their tabs as `ul[role="tablist"] > li > a[role="tab"]`. The `li` elements keep their implicit `listitem` role, so the tablist's owned children are list items instead of tabs, and each list item has no `list` parent. Automated checkers report this as `aria-required-children`, `aria-required-parent` and `listitem` violations. Add `role="presentation"` to the `li` elements in `post_categories_meta_box()` and `link_categories_meta_box()`, so the tabs become the tablist's direct children in the accessibility tree. This is the approach described in the ARIA Authoring Practices Guide's "Hiding Semantics with the presentation Role", and matches the embed share dialog tabs. Follow-up to [61764]. See #66725. --- src/wp-admin/includes/meta-boxes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 54367825514f6..24d6857268c69 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -644,8 +644,8 @@ function post_categories_meta_box( $post, $box ) { ?>