Skip to content

Commit 127f12e

Browse files
author
cchaos
committed
Fixing a few things for legacy dark mode based on not having a provider
1 parent 8db48b9 commit 127f12e

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

src-docs/src/views/theme/consuming.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default () => {
1818
css={{
1919
background: euiTheme.colors.lightShade,
2020
padding: `calc(${euiTheme.size.base} * 2)`,
21+
color: euiTheme.colors.text,
2122
}}
2223
>
2324
The padding of this box is created using <EuiCode>calc()</EuiCode>{' '}

src-docs/src/views/theme/consuming_hoc.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Block extends React.Component<WithEuiThemeProps> {
1313
background: ${theme.euiTheme.colors.lightShade};
1414
padding: ${theme.euiTheme.size.xl};
1515
border-radius: ${theme.euiTheme.border.radius.medium};
16+
color: ${theme.euiTheme.colors.text};
1617
`;
1718

1819
return (

src-docs/src/views/theme/override_simple.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const Box: FunctionComponent<{ children: ReactNode }> = ({ children }) => {
1111
css={{
1212
background: euiTheme.colors.lightShade,
1313
padding: euiTheme.size.xl,
14+
color: euiTheme.colors.text,
1415
}}
1516
>
1617
<p>{children}</p>

src/theme_dark.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// Global styling
55
@import 'global_styling/index';
66

7+
// The reset file makes use of variables and mixins
8+
@import 'global_styling/reset/index';
9+
710
// Components
811
@import 'components/index';
912

0 commit comments

Comments
 (0)