From acae155d6e29c06f0e36eb5db03fa8997415a920 Mon Sep 17 00:00:00 2001 From: Kallyn Gowdy Date: Mon, 10 Jan 2022 16:26:41 -0500 Subject: [PATCH] fix: An issue where rc-tooltip CSS declarations were incorrectly ordered on build - rc-tooltip: https://www.npmjs.com/package/rc-tooltip - The issue was that two CSS declarations (.rc-tooltip & .rc-tooltip-hidden) appear with one order in development (.rc-tooltip then .rc-tooltip-hidden) and the reverse order in a build (.rc-tooltip-hidden then .rc-tooltip). - See https://github.com/facebook/docusaurus/issues/3678 - This patch fixes the issue by ensuring that the .rc-tooltip-hidden class takes precedence over the .rc-tooltip class. --- docs/package.json | 3 ++- docs/src/css/custom.css | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/package.json b/docs/package.json index 1a1b4b4776..3f4ab73644 100644 --- a/docs/package.json +++ b/docs/package.json @@ -6,7 +6,8 @@ "start": "docusaurus start -p 3001", "build": "docusaurus build", "swizzle": "docusaurus swizzle", - "deploy": "docusaurus deploy" + "deploy": "docusaurus deploy", + "serve": "docusaurus serve -p 3001" }, "dependencies": { "@docusaurus/core": "2.0.0-beta.9", diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index 602c2527a2..df8834bde0 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -121,4 +121,8 @@ html[data-theme="dark"] .rc-tooltip { color: var(--ifm-font-color-base); border: solid 1px; border-color: var(--ifm-tooltip-border-color); + } + + .rc-tooltip-hidden { + display: none !important; } \ No newline at end of file