-
Notifications
You must be signed in to change notification settings - Fork 139
fix(Button): avoid icon shrink #2563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Preview is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Playwright report text is moved to a half of pixel in the last button
|
🎭 Component Tests Report is ready. |
| }; | ||
|
|
||
| /** Story for testing icon shrink with text overflow */ | ||
| export const TestIconTextOverflow: Story = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not use stories for testing purposes. Instead, provide this layout directly in the test
| <Button {...args}> | ||
| <IconWithSize data={Heart} size={args.size} /> | ||
| { | ||
| 'AwacsEasyUpstream "cdp-api.metrika.foobar.net-cdp-api-heavy-upstream-retriable": DEPLOYING: AwacsUpstream "metrika-java/cdp-api.metrika.foobar.net-cdp-api-heavy-upstream-retriable" is still in progress: metrika-java/cdp-api.metrika.foobar.net-cdp-api-heavy-upstream-retriable is still in progress' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use more reasonable text, lorem part would be ok
No description provided.