[wp-trac] [WordPress Trac] #56396: Twenty Twenty: update selectors in get_non_latin_css()

WordPress Trac noreply at wordpress.org
Wed Aug 17 18:15:09 UTC 2022


#56396: Twenty Twenty: update selectors in get_non_latin_css()
---------------------------+--------------------
 Reporter:  sabernhardt    |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  6.1
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  css            |
---------------------------+--------------------
 Several of the selectors used to set fonts are missing from the 'front-
 end' array:
 {{{
 .faux-button.more-link,
 .entry-content .wp-block-cover-image p,
 .entry-content,
 .entry-content h1,
 .entry-content h2,
 .entry-content h3,
 .entry-content h4,
 .entry-content h5,
 .entry-content h6,
 .entry-content table,
 .entry-content address,
 .entry-content .wp-block-file
 }}}

 As a result, elements such as headings in the post content have the
 default sans-serif font (Inter variable or a system font) instead of the
 one defined for the language. Likewise, some elements in `.entry-content`
 would still display in a serif font.

 The 'block-editor' and 'classic-editor' arrays may need updating as well
 (beyond removing `.wp-block` from headings in #56194). A
 [https://docs.google.com/spreadsheets/d/1LHE-
 eDHP0ka8kVlMJJWAv3R3ewQXtxmLxD8LWeYTRGI/edit?usp=sharing comparison
 spreadsheet] shows selectors from all three arrays against similar
 selectors in style.css.

 Reviewing the languages would be good, too. For example, Persian (`fa-IR`)
 is included, but not the Afghanistan `fa-AF` locale.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56396>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list