Making WordPress.org


Ignore:
Timestamp:
12/11/2019 07:37:01 AM (6 years ago)
Author:
tellyworth
Message:

Main theme: CSS needed for heading hierarchy a11y fix

This is the CSS and JS component of a patch that adjusts the h1/h2/.. heading hierarchy in the About section. Markup will come in a later deploy.

See #4120.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/css/base/_headings.scss

    r6214 r9327  
    11h1, h2, h3, h4, h5, h6 {
     2    font-family: fontFamily(); /* We need to re-state the font family because of conflicting styles from wp4.css */
    23    clear: both;
    34    line-height: $type__lineheight;
     
    56}
    67
    7 h1 {
    8     font-size: ms( 12 );
    9     font-weight: 300;
    10 }
    11 
    12 h2 {
     8h1, .h1 {
    139    font-size: ms( 8 );
    1410    font-weight: 300;
    1511}
    1612
    17 h3 {
     13h2, .h2 {
     14    font-size: ms( 6 );
     15    font-weight: 300;
     16}
     17
     18h3, .h3 {
    1819    font-size: ms( 4 );
    1920    font-weight: 400;
    2021}
    2122
    22 h4 {
     23h4, .h4 {
    2324    font-size: ms( 2 );
    2425    color: $color__base-gray;
     
    2728}
    2829
    29 h5 {
     30h5, .h5 {
    3031    font-size: ms( 0 );
    3132    font-weight: 600;
     
    3435}
    3536
    36 h6 {
     37h6, .h6 {
    3738    font-size: ms( -2 );
    3839    font-weight: 600;
Note: See TracChangeset for help on using the changeset viewer.