explicit themes
This commit is contained in:
parent
6548d88fa5
commit
34c0b5d2a3
|
@ -46,28 +46,30 @@ export default function App() {
|
|||
}
|
||||
|
||||
return (
|
||||
<ErrorContext.Provider value={errorContextValueArray}>
|
||||
<BrowserRouter>
|
||||
<NavigationBar />
|
||||
<Content>
|
||||
{errorTag}
|
||||
<ErrorBoundary>
|
||||
<Routes>
|
||||
<Route path="/" element={<HomePage />} />
|
||||
<Route path="/tasks" element={<HomePage />} />
|
||||
<Route path="/admin/*" element={<AdminRoutes />} />
|
||||
<Route
|
||||
path="/tasks/:process_instance_id/:task_id"
|
||||
element={<TaskShow />}
|
||||
/>
|
||||
<Route
|
||||
path="/tasks/:process_instance_id/:task_id"
|
||||
element={<TaskShow />}
|
||||
/>
|
||||
</Routes>
|
||||
</ErrorBoundary>
|
||||
</Content>
|
||||
</BrowserRouter>
|
||||
</ErrorContext.Provider>
|
||||
<div className="cds--white">
|
||||
<ErrorContext.Provider value={errorContextValueArray}>
|
||||
<BrowserRouter>
|
||||
<NavigationBar />
|
||||
<Content>
|
||||
{errorTag}
|
||||
<ErrorBoundary>
|
||||
<Routes>
|
||||
<Route path="/" element={<HomePage />} />
|
||||
<Route path="/tasks" element={<HomePage />} />
|
||||
<Route path="/admin/*" element={<AdminRoutes />} />
|
||||
<Route
|
||||
path="/tasks/:process_instance_id/:task_id"
|
||||
element={<TaskShow />}
|
||||
/>
|
||||
<Route
|
||||
path="/tasks/:process_instance_id/:task_id"
|
||||
element={<TaskShow />}
|
||||
/>
|
||||
</Routes>
|
||||
</ErrorBoundary>
|
||||
</Content>
|
||||
</BrowserRouter>
|
||||
</ErrorContext.Provider>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -124,7 +124,6 @@ export default function NavigationBar() {
|
|||
};
|
||||
|
||||
if (activeKey) {
|
||||
// TODO: apply theme g100 to the header
|
||||
return (
|
||||
<HeaderContainer
|
||||
render={({ isSideNavExpanded, onClickSideNavExpand }: any) => (
|
||||
|
|
|
@ -5,6 +5,11 @@
|
|||
// @include grid.flex-grid();
|
||||
|
||||
// @use '@carbon/react/scss/colors';
|
||||
// .cds--header, a.cds--header__menu-item {
|
||||
// background-color: colors.$gray-100;
|
||||
// }
|
||||
|
||||
// site is mainly using white theme.
|
||||
// header is mainly using g100
|
||||
// mockup wanted white, not grey, text
|
||||
.cds--header, a.cds--header__menu-item {
|
||||
// background-color: colors.$gray-100;
|
||||
color: white;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue