Skip to content

Commit

Permalink
fix(core): fix error boundary import disrupting CSS order (#6052)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Dec 8, 2021
1 parent 813300b commit 59f81e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ html[data-announcement-bar-initially-dismissed='true'] .announcementBar {
.announcementBarClose {
flex: 0 0 30px;
align-self: stretch;
padding: 0 !important;
line-height: 0 !important;
padding: 0;
line-height: 0;
}

.announcementBarContent {
Expand Down
6 changes: 4 additions & 2 deletions packages/docusaurus/src/client/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ import routes from '@generated/routes';
import renderRoutes from './exports/renderRoutes';
import {BrowserContextProvider} from './exports/browserContext';
import {DocusaurusContextProvider} from './exports/docusaurusContext';
import ErrorBoundary from '@docusaurus/ErrorBoundary';
import PendingNavigation from './PendingNavigation';
import BaseUrlIssueBanner from './baseUrlIssueBanner/BaseUrlIssueBanner';
import Root from '@theme/Root';
import Error from '@theme/Error';

import './client-lifecycles-dispatcher';

// TODO, quick fix for CSS insertion order
import ErrorBoundary from '@docusaurus/ErrorBoundary';
import Error from '@theme/Error';

function App(): JSX.Element {
return (
<ErrorBoundary fallback={Error}>
Expand Down

0 comments on commit 59f81e6

Please sign in to comment.