mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fix css specificity issue (#135245)
This commit is contained in:
parent
e08e4b4c0c
commit
4a6201785f
1 changed files with 9 additions and 1 deletions
|
@ -58,7 +58,15 @@ function MarkdownVisualization(props) {
|
|||
{markdownError && <ErrorComponent error={markdownError} />}
|
||||
<ClassNames>
|
||||
{({ css, cx }) => (
|
||||
<div className={cx(contentClasses, css(model.markdown_css))}>
|
||||
<div
|
||||
className={cx(
|
||||
contentClasses,
|
||||
// wrapping select for markdown body to make sure selector specificity wins over base styles
|
||||
css(`.kbnMarkdown__body {
|
||||
${model.markdown_css}
|
||||
}`)
|
||||
)}
|
||||
>
|
||||
<div>
|
||||
{!markdownError && (
|
||||
<Markdown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue