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): re-introduce bx--snippet-button class to copy button #4773

Merged
merged 3 commits into from
Nov 27, 2019
Merged

fix(code-snippet): re-introduce bx--snippet-button class to copy button #4773

merged 3 commits into from
Nov 27, 2019

Conversation

jendowns
Copy link
Contributor

@jendowns jendowns commented Nov 25, 2019

Closes #4772

Recent changes have left out the bx--snippet-button class that was previously added to the copy button inside the CodeSnippet 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-line

Changelog

New

  • re-introduce bx--snippet-button class for copy button style & positioning

Testing / 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

@jendowns jendowns requested a review from a team as a code owner November 25, 2019 20:21
@ghost ghost requested review from aledavila and asudoh November 25, 2019 20:21
@netlify
Copy link

netlify bot commented Nov 25, 2019

Deploy preview for carbon-components-react ready!

Built with commit c5a0092

https://deploy-preview-4773--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Nov 25, 2019

Deploy preview for carbon-elements ready!

Built with commit c5a0092

https://deploy-preview-4773--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Nov 25, 2019

Deploy preview for the-carbon-components ready!

Built with commit c5a0092

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

@asudoh asudoh requested a review from emyarod November 25, 2019 21:48
Copy link
Member

@emyarod emyarod left a 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

@jendowns
Copy link
Contributor Author

Thanks! @joshblack @emyarod so will #4741 be merged in time for the next release, to avoid releasing the copy button style regression?

@emyarod
Copy link
Member

emyarod commented Nov 27, 2019

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

Copy link
Member

@emyarod emyarod left a 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

@asudoh asudoh merged commit 28a39b9 into carbon-design-system:master Nov 27, 2019
@jendowns jendowns deleted the 4772_code-snippet-copy-button branch November 27, 2019 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Code Snippet]: copy button style regression in latest unpublished code
4 participants