[wp-trac] [WordPress Trac] #56109: Twenty Twenty-One: Button font size issue when we change the alignment

WordPress Trac noreply at wordpress.org
Wed Jul 20 05:57:59 UTC 2022


#56109: Twenty Twenty-One: Button font size issue when we change the alignment
------------------------------+------------------------------
 Reporter:  nidhidhandhukiya  |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Bundled Theme     |     Version:  6.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------------------

Comment (by poena):

 Hi!

 Targeting the class {{{.has-custom-font-size}}} on the button like in
 patch 56109.1 will work better than removing the CSS property in patch
 56109.2.
 - This is because removing the CSS property will break existing sites that
 uses it.

 - Is there a way we can make the selector less specific than in patch
 56109.1?
 - The theme uses sass and the CSS files are generated with the build tools
 and commands listed in the package.json file. This means that the changes
 need to be made to the .scss files, or the changes will be overwritten.

 The correct scss file to update for the button block's editor view is
 twentytwentyone/assets/sass/05-blocks/button/_editor.scss

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


More information about the wp-trac mailing list