[wp-trac] [WordPress Trac] #54079: Remove "role" attribute on HTML5 elements with a default landmark role.

WordPress Trac noreply at wordpress.org
Tue Sep 7 07:01:58 UTC 2021


#54079: Remove "role" attribute on HTML5 elements with a default landmark role.
----------------------------+----------------------------------------------
 Reporter:  costdev         |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  accessibility, coding-standards
  needs-refresh             |
----------------------------+----------------------------------------------
Changes (by mukesh27):

 * keywords:  has-patch => has-patch needs-refresh


Comment:

 Hi, @costdev thanks for the ticket and patch.

 I think we have to update CSS if any it uses the `role` selector. In my
 quick search, I found below 1 instance.

 https://github.com/WordPress/WordPress/blob/master/wp-
 content/themes/twentytwelve/style.css#L678
 {{{
 footer[role="contentinfo"] {
         border-top: 1px solid #ededed;
         clear: both;
         font-size: 12px;
         font-size: 0.857142857rem;
         line-height: 2;
         max-width: 960px;
         max-width: 68.571428571rem;
         margin-top: 24px;
         margin-top: 1.714285714rem;
         margin-left: auto;
         margin-right: auto;
         padding: 24px 0;
         padding: 1.714285714rem 0;
 }
 footer[role="contentinfo"] a {
         color: #686868;
 }
 footer[role="contentinfo"] a:hover {
         color: #21759b;
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54079#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list