Skip to content

Commit b24b356

Browse files
[docs] More detailed palette documentation
1 parent 0724dad commit b24b356

43 files changed

Lines changed: 200 additions & 241 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.size-limit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
{
33
"name": "The initial cost people pay for using one component",
44
"path": "test/size/overhead.js",
5-
"limit": "24.9 KB"
5+
"limit": "24.7 KB"
66
},
77
{
88
"name": "The size of the whole library.",
99
"path": "build/index.js",
10-
"limit": "96.4 KB"
10+
"limit": "96.1 KB"
1111
},
1212
{
1313
"name": "The main bundle of the documentation",

docs/src/modules/components/Demo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const styles = theme => ({
2424
},
2525
},
2626
demo: theme.mixins.gutters({
27-
backgroundColor: theme.palette.background.contentFrame,
27+
backgroundColor:
28+
theme.palette.type === 'light' ? theme.palette.grey[200] : theme.palette.grey[900],
2829
display: 'flex',
2930
justifyContent: 'center',
3031
paddingTop: theme.spacing.unit * 2,

docs/src/modules/components/MarkdownElement.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const styles = theme => ({
146146
overflow: 'hidden',
147147
},
148148
'& thead': {
149-
fontSize: 12,
149+
fontSize: 13,
150150
fontWeight: theme.typography.fontWeightMedium,
151151
color: theme.palette.text.secondary,
152152
},
@@ -156,7 +156,7 @@ const styles = theme => ({
156156
color: theme.palette.text.primary,
157157
},
158158
'& td': {
159-
borderBottom: `1px solid ${theme.palette.text.lightDivider}`,
159+
borderBottom: `1px solid ${theme.palette.divider}`,
160160
padding: `${theme.spacing.unit}px ${theme.spacing.unit * 2}px ${theme.spacing.unit}px ${
161161
theme.spacing.unit
162162
}px`,
@@ -174,7 +174,8 @@ const styles = theme => ({
174174
},
175175
'& th': {
176176
whiteSpace: 'pre',
177-
borderBottom: `1px solid ${theme.palette.text.lightDivider}`,
177+
borderBottom: `1px solid ${theme.palette.divider}`,
178+
fontWeight: theme.typography.fontWeightMedium,
178179
padding: `0 ${theme.spacing.unit * 2}px 0 ${theme.spacing.unit}px`,
179180
textAlign: 'left',
180181
},

docs/src/pages/customization/ThemeDefault.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const styles = theme => ({
1010
root: {
1111
padding: theme.spacing.unit * 2,
1212
paddingTop: 0,
13-
backgroundColor: theme.palette.type === 'light' ? '#fff' : 'rgb(36, 36, 36)',
13+
// Match <Inspector /> default theme.
14+
backgroundColor: theme.palette.type === 'light' ? theme.palette.common.white : '#242424',
1415
minHeight: theme.spacing.unit * 40,
1516
width: '100%',
1617
},

docs/src/pages/demos/dividers/ListDividers.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ function ListDividers(props) {
1919
<ListItem button>
2020
<ListItemText primary="Inbox" />
2121
</ListItem>
22-
<Divider light />
22+
<Divider />
2323
<ListItem button>
2424
<ListItemText primary="Drafts" />
2525
</ListItem>
2626
<Divider />
2727
<ListItem button>
2828
<ListItemText primary="Trash" />
2929
</ListItem>
30+
<Divider light />
31+
<ListItem button>
32+
<ListItemText primary="Spam" />
33+
</ListItem>
3034
</List>
3135
);
3236
}

docs/src/pages/demos/expansion-panels/DetailedExpansionPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const styles = theme => ({
3636
flexBasis: '33.3%',
3737
},
3838
helper: {
39-
borderLeft: `2px solid ${theme.palette.text.lightDivider}`,
39+
borderLeft: `2px solid ${theme.palette.divider}`,
4040
padding: `${theme.spacing.unit}px ${theme.spacing.unit * 2}px`,
4141
},
4242
link: {

docs/src/pages/demos/menus/ListItemComposition.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ const styles = theme => ({
1212
menuItem: {
1313
'&:focus': {
1414
backgroundColor: theme.palette.primary.main,
15-
'& $text, & $icon': {
15+
'& $primary, & $icon': {
1616
color: theme.palette.common.white,
1717
},
1818
},
1919
},
20-
text: {},
20+
primary: {},
2121
icon: {},
2222
});
2323

@@ -31,19 +31,19 @@ function ListItemComposition(props) {
3131
<ListItemIcon className={classes.icon}>
3232
<SendIcon />
3333
</ListItemIcon>
34-
<ListItemText classes={{ text: classes.text }} inset primary="Sent mail" />
34+
<ListItemText classes={{ primary: classes.primary }} inset primary="Sent mail" />
3535
</MenuItem>
3636
<MenuItem className={classes.menuItem}>
3737
<ListItemIcon className={classes.icon}>
3838
<DraftsIcon />
3939
</ListItemIcon>
40-
<ListItemText classes={{ text: classes.text }} inset primary="Drafts" />
40+
<ListItemText classes={{ primary: classes.primary }} inset primary="Drafts" />
4141
</MenuItem>
4242
<MenuItem className={classes.menuItem}>
4343
<ListItemIcon className={classes.icon}>
4444
<InboxIcon />
4545
</ListItemIcon>
46-
<ListItemText classes={{ text: classes.text }} inset primary="Inbox" />
46+
<ListItemText classes={{ primary: classes.primary }} inset primary="Inbox" />
4747
</MenuItem>
4848
</MenuList>
4949
</Paper>

docs/src/pages/demos/tables/EnhancedTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ EnhancedTableHead.propTypes = {
9494

9595
const toolbarStyles = theme => ({
9696
root: {
97-
paddingRight: 2,
97+
paddingRight: theme.spacing.unit,
9898
},
9999
highlight:
100100
theme.palette.type === 'light'

pages/api/button-base.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ filename: /src/ButtonBase/ButtonBase.js
66

77
# ButtonBase
88

9-
9+
`ButtonBase` contains as few styles as possible.
10+
It aims to be a building block for people who want to create a simple button.
11+
It contains a load of style reset and some focus/ripple logic.
1012

1113
## Props
1214

pages/api/table-row.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Any other properties supplied will be [spread to the root element](/guides/api#s
2626
You can override all the class names injected by Material-UI thanks to the `classes` property.
2727
This property accepts the following keys:
2828
- `root`
29-
- `head`
30-
- `footer`
31-
- `hover`
29+
- `typeHead`
30+
- `typeFooter`
3231
- `selected`
32+
- `hover`
3333

3434
Have a look at [overriding with classes](/customization/overrides#overriding-with-classes) section
3535
and the [implementation of the component](https://github.com/mui-org/material-ui/tree/v1-beta/src/Table/TableRow.js)

0 commit comments

Comments
 (0)