Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #62338


Ignore:
Timestamp:
11/04/2024 04:22:25 PM (6 months ago)
Author:
sabernhardt
Comment:

For the complementary role, you could use aside as the tagName. (MDN says, "If possible, use the HTML <aside> element instead.") Twenty Twenty-Four uses it in the "Blogging home" pattern.

However, could a different role be necessary on the template part container element?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62338

    • Property Focuses accessibility added; docs removed
    • Property Version changed from 6.6.2 to
  • Ticket #62338 – Description

    initial v1  
    1 <!-- wp:template-part {"slug":"news","tagName":"section","role":"complementary","theme":"mytheme"} /-->
     1`<!-- wp:template-part {"slug":"news","tagName":"section","role":"complementary","theme":"mytheme"} /-->`
    22
    3 If there isn't already a way to give the resulting <section class="wp-block-template-part"> an ARIA role, that would be a nice enhancement.
     3If there isn't already a way to give the resulting `<section class="wp-block-template-part">` an ARIA role, that would be a nice enhancement.