Disabled block switcher icons are blurry #15629
Labels
[Feature] Blocks
Overall functionality of blocks
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
When the block switcher is disabled, the block icon inside of it appears smaller than it should, resulting in some blurry icons on non-retina screens. Here's the Container block icon for instance, appearing at
20px
wide:For comparison, here's a non-disabled icon, which renders at the correct
24px
wide:The issue appears to be that when the toolbar icon appears disabled like that, the IconButton parent gets a
has-text
class, which adds a4px
right margin to the child SVG. Removing that rule renders the icon at the correct size:To fix, I suppose we can negate this with an extra style rule inside of
editor-block-switcher__no-switcher-icon
, but I'm wondering if thishas-text
class is needed here in the first place? Should that be removed in this case?cc @jasmussen
Related: #13721
The text was updated successfully, but these errors were encountered: