From 2beeb2fab034f19b37107ae6527042fc2fb5273a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Thu, 24 Sep 2020 10:02:22 +0200 Subject: [PATCH] Add aria-haspopup property --- packages/editor/src/components/table-of-contents/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/editor/src/components/table-of-contents/index.js b/packages/editor/src/components/table-of-contents/index.js index eecb0c397459d4..a739de193c64a5 100644 --- a/packages/editor/src/components/table-of-contents/index.js +++ b/packages/editor/src/components/table-of-contents/index.js @@ -32,6 +32,7 @@ function TableOfContents( onClick={ hasBlocks ? onToggle : undefined } icon={ info } aria-expanded={ isOpen } + aria-haspopup="true" /* translators: button label text should, if possible, be under 16 characters. */ label={ __( 'Details' ) } tooltipPosition="bottom"