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(code-snippet): set multi-line snippet overflow-x to auto #4360

Merged
merged 2 commits into from
Oct 17, 2019
Merged

fix(code-snippet): set multi-line snippet overflow-x to auto #4360

merged 2 commits into from
Oct 17, 2019

Conversation

jendowns
Copy link
Contributor

Currently if you click on the "expand" / "view more" button for the multi-line CodeSnippet, it will always show a horizontal scrollbar even if there isn't any content overflowing horizontally... (you can see it in action here when you expand the CodeSnippet: http://react.carbondesignsystem.com/?path=/story/codesnippet--multi-line)

This can be fixed by changing overflow-x: scroll (aka "always show a scrollbar") to overflow-x: auto (aka "default behavior / show a scrollbar if needed")

Changelog

Changed

  • change overflow-x: scroll to overflow-x: auto
    Removed

@jendowns jendowns requested a review from a team as a code owner October 16, 2019 19:08
@ghost ghost requested review from aledavila and vpicone October 16, 2019 19:08
@netlify
Copy link

netlify bot commented Oct 16, 2019

Deploy preview for the-carbon-components ready!

Built with commit 273674c

https://deploy-preview-4360--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Oct 16, 2019

Deploy preview for carbon-elements failed.

Built with commit 273674c

https://app.netlify.com/sites/carbon-elements/deploys/5da7d268b2fd17000798634a

@netlify
Copy link

netlify bot commented Oct 16, 2019

Deploy preview for carbon-components-react failed.

Built with commit 273674c

https://app.netlify.com/sites/carbon-components-react/deploys/5da7d2689d78fe0008a29c59

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @jendowns!

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.

3 participants