[Win32][Button] There's an extra space for Buttons with icon
ValentinaKozlova opened this issue · comments
Valentyna commented
Steps:
- Create Button with icons from the left and right sides.
- Open Experimental Button page in Tester.
Actual result:
If icon is from the left side, extra space will be from the right. And the same thing for right icons.
It's because of this code in Button.styling.ts
const spacingIconContent = tokens.spacingIconContent
? {
marginLeft: tokens.spacingIconContent,
marginRight: tokens.spacingIconContent,
}
: {};
Expected result:
There should be conditiion for position of icon. Currently both margins are added by default.