-
Notifications
You must be signed in to change notification settings - Fork 921
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
Avoid tabbed-pane.scss style leakage #1163
Avoid tabbed-pane.scss style leakage #1163
Conversation
.tab-content { | ||
.highlight { | ||
margin: 0rem 0 2rem 0; | ||
} |
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.
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.
@deining may have a better take on it - I'll take a look, but my immediate thought is possibly we might want a style for highlight
content that's in a tabbed pane but not inside a code block. Though if they're the same style settings....
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.
Though hmm, we only apply highlight
to code blocks, so that doesn't make sense.
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.
This fixes the style "leakage". Can you approve it as is @LisaFC?
We can address the possible style "dead code" separately.
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.
Sure
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.
We'll track this via:
a7047ca
to
0bc7ff9
Compare
This PR applies minimal style changes in order to address the
highlight
style override reported in:Preview: https://deploy-preview-1157--docsydocs.netlify.app/docs/adding-content/shortcodes/#tabbed-panes
Screenshots
Note the equal amount of spacing before and after the code block in the After screenshot.