INSTUI-4682 fix(ui-buttons): fix for AI secondary button visual glitch#2139
Merged
git-nandor merged 1 commit intomasterfrom Sep 25, 2025
Merged
INSTUI-4682 fix(ui-buttons): fix for AI secondary button visual glitch#2139git-nandor merged 1 commit intomasterfrom
git-nandor merged 1 commit intomasterfrom
Conversation
|
664be3b to
e385461
Compare
Contributor
@git-nandor in some cases, the the focus ring still looks stretched, can you please take a look at this?
|
e385461 to
99b761c
Compare
99b761c to
9d7abd7
Compare
Contributor
Author
|
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
ToMESSKa
approved these changes
Sep 16, 2025
matyasf
requested changes
Sep 16, 2025
Collaborator
matyasf
left a comment
There was a problem hiding this comment.
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
joyenjoyer
previously requested changes
Sep 17, 2025
Contributor
joyenjoyer
left a comment
There was a problem hiding this comment.
UI tests show an anomaly, please check.
Contributor
Author
ToMESSKa
approved these changes
Sep 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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.