WordPress / playground-tools

GNU General Public License v2.0
127 stars 38 forks source link

Playground block: A11Y: Remove duplicate main landmarks #292

Open alexstine opened 3 weeks ago

alexstine commented 3 weeks ago

Test page: https://learn.wordpress.org/test/wordpress-playground-block-plugin-test-page/

Every time the Playground block is used, it renders a <main> landmark. Really, this landmark should only be used once per page. Can this be replaced by another tag? Maybe just a generic <div>? You could also replace this with a <section aria-label="Playground"> but I think if the Playground block has surrounding headings, it's not a big deal.

brandonpayton commented 2 weeks ago

Thanks for flagging this, @alexstine!