[wp-trac] [WordPress Trac] #47183: Console warning with Dashicons font and input type="radio"

WordPress Trac noreply at wordpress.org
Wed May 8 14:56:01 UTC 2019


#47183: Console warning with Dashicons font and input type="radio"
----------------------------+------------------------------
 Reporter:  aduth           |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  5.2
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui
----------------------------+------------------------------

Comment (by afercia):

 I see two possible reasons for this (Chrome-only) warning:
 - remove the query parameter from the `.eot` file in the first `@font-
 face` ruleset in the dashicon CSS and the warning goes away
 - as said above, `\2022` is not a glyph in the dashicons font, it's just
 the "bullet" unicode character so the checked radio buttons shouldn't use
 the dashicon font-family in the first place, see
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/css/forms.css?rev=44895&marks=128#L121 (this seems to be a long
 standing incorrect property value)

 Granted, when a browser doesn't find a font-family, it should fallback to
 the one used on the ancestors and ultimately to the OS/browser default, so
 the query param might play a role anyways.

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


More information about the wp-trac mailing list