From b77df96fb73dfab5d94f7f55424bbe53f33f4d1a Mon Sep 17 00:00:00 2001 From: Justin Tulk Date: Mon, 28 Oct 2024 14:01:21 -0700 Subject: [PATCH] chore(ui): ejecting markdown from tailwind defaulting (#2796) * ejecting markdown from tailwind defaulting * adding rules --- weave-js/src/common/components/Markdown.tsx | 9 ++- weave-js/src/css/wandbTailwindPreflight.css | 78 +++++++++++++++++++-- 2 files changed, 81 insertions(+), 6 deletions(-) diff --git a/weave-js/src/common/components/Markdown.tsx b/weave-js/src/common/components/Markdown.tsx index 70c647642e27..733b4367ae24 100644 --- a/weave-js/src/common/components/Markdown.tsx +++ b/weave-js/src/common/components/Markdown.tsx @@ -105,10 +105,15 @@ const Markdown: React.FC = ({ updateHeight(); }, [html, updateHeight]); + // The `tw-eject` class is used to optionally eject from `.tw-style` resets if this component happens to be rendered with a `.tw-style` parent in the tree + // see: src/wandbTailwindPreflight.css return ( -
+