[wp-trac] [WordPress Trac] #56951: Incorrect use of class in wp-admin fields

WordPress Trac noreply at wordpress.org
Thu Nov 3 13:15:29 UTC 2022


#56951: Incorrect use of class in wp-admin fields
-------------------------+-------------------------------------------------
 Reporter:  phillsav     |       Owner:  (none)
     Type:  defect       |      Status:  new
  (bug)                  |
 Priority:  normal       |   Milestone:  Awaiting Review
Component:               |     Version:
  Administration         |
 Severity:  normal       |  Resolution:
 Keywords:  close 2nd-   |     Focuses:  css, administration, coding-
  opinion                |  standards
-------------------------+-------------------------------------------------

Comment (by phillsav):

 Hello @sabernhardt and thank you for your prompt reply.

 Yes, you are correct, the additional fields have been generated from the
 Yoast Seo plugin.

 I will raise this with Yoast Seo and issue a PR to fix in line with core
 styles.

 Replying to [comment:1 sabernhardt]:
 > Hi and thanks for the report!
 >
 > The style guide page describes how to style "Code in text"; these are
 input fields. For the "Website" field, the `regular-text` class sets the
 input width, and the `code` class gives it the fixed-width font and text
 direction.
 >
 > "Facebook profile URL" is not a Core profile field, but it seems to be
 from Yoast SEO. You could open an issue (and/or pull request) to suggest
 adding the `code` class to each profile URL field and probably changing
 the `type` from `text` to `url`.
 > https://github.com/Yoast/wordpress-seo/issues

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


More information about the wp-trac mailing list