Skip to content

Commit

Permalink
fix: An issue where rc-tooltip CSS declarations were incorrectly orde…
Browse files Browse the repository at this point in the history
…red 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 facebook/docusaurus#3678
- This patch fixes the issue by ensuring that the .rc-tooltip-hidden class takes precedence over the .rc-tooltip class.
  • Loading branch information
KallynGowdy committed Jan 10, 2022
1 parent e0c6592 commit acae155
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit acae155

Please sign in to comment.