-
Notifications
You must be signed in to change notification settings - Fork 106
INSTUI-4682 fix(ui-buttons): fix for AI secondary button visual glitch #2139
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
Conversation
|
664be3b
to
e385461
Compare
![]() |
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.
see my comment
e385461
to
99b761c
Compare
99b761c
to
9d7abd7
Compare
The vertical stretch caused by flex wasn’t limited to the secondary version, although the visual glitch only appeared there. I moved the fix to baseButton so it now applies everywhere. I also reviewed the other buttons and they look fine to me. Thanks for catching that! |
0afa131
to
fb34459
Compare
faa5b58
to
df0cad3
Compare
df0cad3
to
9e88f96
Compare
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.
Now components look off in the regression test (check out the Chromatic diff), there are 3 different vertical positions. It looked better in the original version
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.
UI tests show an anomaly, please check.
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.
looks good!
When rendering the AI button inside a flex container with a fixed height, the button was being stretched vertically due to the parent’s default align-items: stretch.
Test:
You can verify the fix by trying the example below on the button docs page.
The visual glitch should no longer appear when the AI secondary button is inside a flex parent with a fixed height.