-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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): re-introduce bx--snippet-button class to copy button #4773
fix(code-snippet): re-introduce bx--snippet-button class to copy button #4773
Conversation
Deploy preview for carbon-components-react ready! Built with commit c5a0092 https://deploy-preview-4773--carbon-components-react.netlify.com |
Deploy preview for carbon-elements ready! Built with commit c5a0092 |
Deploy preview for the-carbon-components ready! Built with commit c5a0092 https://deploy-preview-4773--the-carbon-components.netlify.com |
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.
I believe this will be superseded by #4741
Thanks! @joshblack @emyarod so will #4741 be merged in time for the next release, to avoid releasing the copy button style regression? |
not certain about the timing of #4741 given that it's not entirely in my hands (awaiting reviews), but just wanted to give heads up about the possible future of this component |
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 to me
Closes #4772
Recent changes have left out the
bx--snippet-button
class that was previously added to the copy button inside theCodeSnippet
component.This class adds necessary positioning styles etc.
The regression that this PR resolves is only visible if you run the latest
master
branch locally, or if you view a recent PR deployment like this one: https://deploy-preview-4760--carbon-components-react.netlify.com/?path=/story/codesnippet--multi-lineChangelog
New
bx--snippet-button
class for copy button style & positioningTesting / Reviewing
Compare this PR's React storybook deployment (where the copy button position is fixed) to the another PR's storybook deployment like this one: https://deploy-preview-4760--carbon-components-react.netlify.com/?path=/story/codesnippet--multi-line