gravity-ui / uikit

https://gravity-ui.com
MIT License
520 stars 84 forks source link

fix(Button): do not shrink button when there is only one icon #1577

Closed teleginzhenya closed 1 month ago

teleginzhenya commented 1 month ago

Resetting plugin makes button with only icon shrink (https://github.com/gravity-ui/uikit/issues/1529). Started to happen after flex refactoring (https://github.com/gravity-ui/uikit/pull/1452)

Related issue https://github.com/gravity-ui/uikit/issues/1529

gravity-ui-bot commented 1 month ago

Preview is ready.

gravity-ui-bot commented 1 month ago

Playwright Test Component is ready.

korvin89 commented 1 month ago

@teleginzhenya Could you add test for this case?

teleginzhenya commented 1 month ago

@korvin89 sure, I did in separate pr #1579 (to see the difference here)