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

Remove default styling for Highlight code, pre selectors, conflict with globals #88

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

kylesuss
Copy link
Contributor

@kylesuss kylesuss commented Oct 8, 2019

After a bit of debugging, I realize that the "theme" I brought over for prism js was overriding a bunch of our global styles for code & pre elements in Highlight blocks. I think it is best to just remove those styles and instead default to our own global styling. I have left the theme styles for prism that target highlighted elements of the code.

@kylesuss kylesuss requested a review from domyen October 8, 2019 17:07
@kylesuss kylesuss removed the request for review from domyen October 8, 2019 17:34
@kylesuss
Copy link
Contributor Author

kylesuss commented Oct 8, 2019

@domyen there were some changes that I approved on Chromatic. They were caused by:

  1. Removing the line-height inconsistency in the Prism JS theme. For example:

https://www.chromaticqa.com/snapshot?appId=5ccbc373887ca40020446347&id=5d9cc25d9bdaca0020abeff1

  1. Removing a style from the Prism theme that affected how we style certain things in Bash. For example:

Note: this one also has the line height diff

https://www.chromaticqa.com/snapshot?appId=5ccbc373887ca40020446347&id=5d9cc25d9bdaca0020abeff3

I approved these as the resulting behavior is what we are looking for in the consumers & part of why implementing the new Highlight component has been a hassle.

@kylesuss kylesuss requested a review from domyen October 8, 2019 17:52
@domyen
Copy link
Member

domyen commented Oct 8, 2019

This looks good to me. Just inspected in Chromatic live view.

@kylesuss kylesuss merged commit 5512b0f into master Oct 8, 2019
@kylesuss kylesuss deleted the fix-highlight-default-styles branch October 8, 2019 20:08
@kylesuss
Copy link
Contributor Author

kylesuss commented Oct 8, 2019

🚀 PR was released in v1.1.4 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants