[wp-trac] [WordPress Trac] #64346: SVG Image dimensions overwritten to hardcoded 24 pixels

WordPress Trac noreply at wordpress.org
Wed Dec 3 21:38:30 UTC 2025


#64346: SVG Image dimensions overwritten to hardcoded 24 pixels
--------------------------+-----------------------------
 Reporter:  ajayadav09    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  6.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I have an  SVG image in my <Button /> component from wordpress/componets
 as an icon. Once the version updated to 9. The dimension of the svg image
 which is originally 160 X 50 chnaged to 24px in width and height. This was
 supposedly introduced by the changes here for
 [https://core.trac.wordpress.org/ticket/63714].

 I have added the images in the comments on the commit too:
 [https://github.com/WordPress/wordpress-
 develop/commit/8c374a5adb9bee9333a013a575b3aa0e828085be#commitcomment-171930242]

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


More information about the wp-trac mailing list