Skip to content

Commit 0827a55

Browse files
luizbaldiarturbien
authored andcommitted
docs: fix Bar component and default on the docs
1 parent ede530c commit 0827a55

File tree

2 files changed

+29
-36
lines changed

2 files changed

+29
-36
lines changed

src/Bar/Bar.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import Button from '../Button/Button.js'
1717
<Playground>
1818
<AppBar style={{ position: 'relative' }}>
1919
<Toolbar>
20-
<Bar />
20+
<Bar size={35} />
2121
<Button variant='menu'>Edit</Button>
2222
<Button variant='menu' disabled>
2323
Save
2424
</Button>
25-
<Bar />
25+
<Bar size={35} />
2626
</Toolbar>
2727
</AppBar>
2828
</Playground>

src/gatsby-theme-docz/wrapper.js

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,36 @@ const ThemedComponent = ({ children }) => {
1111
temporary solution, for some reason when importing theme from the src/ folder docz doesn't work :(
1212
*/
1313
const defaultTheme = {
14-
canvas: '#ffffff',
15-
material: '#ced0cf',
16-
materialDark: '#9a9e9c',
17-
18-
borderDarkest: '#050608',
19-
borderLightest: '#ffffff',
20-
borderDark: '#888c8f',
21-
checkmarkDisabled: '#888c8f',
22-
borderLight: '#dfe0e3',
23-
24-
headerMaterialDark: '#000080',
25-
headerMaterialLight: '#000080',
26-
headerText: '#ffffff',
27-
headerNotActive: '#7f7f7f',
28-
29-
text: '#050608',
30-
textInvert: '#ffffff',
31-
textDisabled: '#888c8f',
32-
textDisabledShadow: '#ffffff',
33-
34-
inputText: '#050608',
35-
inputTextInvert: '#ffffff',
36-
inputTextDisabled: '#888c8f',
37-
inputTextDisabledShadow: '#ffffff',
38-
39-
tooltip: '#fefbcc',
40-
14+
name: 'original',
4115
anchor: '#1034a6',
4216
anchorVisited: '#440381',
43-
44-
hoverBackground: '#000080',
45-
checkmark: '#050608',
46-
47-
progress: '#000080',
48-
17+
borderDark: '#848584',
18+
borderDarkest: '#0a0a0a',
19+
borderLight: '#dfdfdf',
20+
borderLightest: '#fefefe',
21+
canvas: '#ffffff',
22+
canvasText: '#0a0a0a',
23+
canvasTextDisabled: '#848584',
24+
canvasTextDisabledShadow: '#fefefe',
25+
canvasTextInvert: '#fefefe',
26+
checkmark: '#0a0a0a',
27+
checkmarkDisabled: '#848584',
28+
flatDark: '#9e9e9e',
4929
flatLight: '#d8d8d8',
50-
flatDark: '#9e9e9e'
30+
focusSecondary: '#fefe03',
31+
headerBackground: '#060084',
32+
headerNotActiveBackground: '#7f787f',
33+
headerNotActiveText: '#c6c6c6',
34+
headerText: '#fefefe',
35+
hoverBackground: '#060084',
36+
material: '#c6c6c6',
37+
materialDark: '#9a9e9c',
38+
materialText: '#0a0a0a',
39+
materialTextDisabled: '#848584',
40+
materialTextDisabledShadow: '#fefefe',
41+
materialTextInvert: '#fefefe',
42+
progress: '#060084',
43+
tooltip: '#fefbcc'
5144
};
5245

5346
ThemedComponent.propTypes = {

0 commit comments

Comments
 (0)