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
fix(CodeSnippet): adjust calculation when show more button is clicked #15839
Conversation
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Maybe I'm missing what this is trying to fix, but I think the show more button shouldn't be showing at all in the test story since the code block fits entirely in the window. I'm seeing the same issue in windows and mac. |
@alisonjoseph I tweaked some things so it should now appropriately show / hide the button as well |
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.
Nice, LGTM!
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.
LGTM! 🚀
cd5ac20
Closes #15774
Based on this comment, I've adjusted the default
minExpandedNumberOfRows
to0
.Changelog
Changed
minExpandedNumberOfRows
to0
Testing / Reviewing
View the test story in
CodeSnippet
on a Windows machine and ensure there are no visual bugs.