Skip to content
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

Merged
merged 4 commits into from Mar 7, 2024

Conversation

tw15egan
Copy link
Member

Closes #15774

Based on this comment, I've adjusted the default minExpandedNumberOfRows to 0.

Changelog

Changed

  • adjusted the default minExpandedNumberOfRows to 0

Testing / Reviewing

View the test story in CodeSnippet on a Windows machine and ensure there are no visual bugs.

Copy link

netlify bot commented Feb 28, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit f7c82c9
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/65e9e25ec720e6000856bb1d
😎 Deploy Preview https://deploy-preview-15839--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tw15egan tw15egan marked this pull request as ready for review March 6, 2024 16:49
@tw15egan tw15egan requested a review from a team as a code owner March 6, 2024 16:49
@alisonjoseph
Copy link
Member

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.

@tw15egan
Copy link
Member Author

tw15egan commented Mar 6, 2024

@alisonjoseph I tweaked some things so it should now appropriately show / hide the button as well

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM!

Copy link
Contributor

@guidari guidari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@guidari guidari added this pull request to the merge queue Mar 7, 2024
Merged via the queue into carbon-design-system:main with commit cd5ac20 Mar 7, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Nothing happen when I clicked on "Show more" in <CodeSnippet> component.
3 participants