ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

[ic-toggle-button]: Icon shrinks when text wraps

Open GCHQ-Developer-112 opened this issue 1 year ago • 0 comments

Summary of the bug

When the text in <ic-toggle-button> has wrapped and the placement of an icon is set to either 'left' or 'right', the icon shrinks. The issue seems to come from these CSS variables: --icon-width: 100%, --icon-height: 100%

📸 Screenshots or code

Before removing the 100% height & width set on any SlottedSVG Screenshot 2024-04-29 at 10 28 00

After removing this CSS Screenshot 2024-04-29 at 10 50 02

🧐 Expected behaviour

The icon size should remain 24px x 24px regardless of whether text has wrapped or not

GCHQ-Developer-112 avatar Apr 29 '24 09:04 GCHQ-Developer-112