Skip to content

Commit 3d01aa0

Browse files
[docs] Fix a few WAVE errors (#20304)
1 parent d956b40 commit 3d01aa0

File tree

10 files changed

+19
-21
lines changed

10 files changed

+19
-21
lines changed

docs/src/pages/components/buttons/CustomizedButtons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const BootstrapButton = withStyles({
1111
padding: '6px 12px',
1212
border: '1px solid',
1313
lineHeight: 1.5,
14-
backgroundColor: '#007bff',
15-
borderColor: '#007bff',
14+
backgroundColor: '#0063cc',
15+
borderColor: '#0063cc',
1616
fontFamily: [
1717
'-apple-system',
1818
'BlinkMacSystemFont',

docs/src/pages/components/buttons/CustomizedButtons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const BootstrapButton = withStyles({
1818
padding: '6px 12px',
1919
border: '1px solid',
2020
lineHeight: 1.5,
21-
backgroundColor: '#007bff',
22-
borderColor: '#007bff',
21+
backgroundColor: '#0063cc',
22+
borderColor: '#0063cc',
2323
fontFamily: [
2424
'-apple-system',
2525
'BlinkMacSystemFont',

docs/src/pages/components/selects/GroupedSelect.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import { makeStyles } from '@material-ui/core/styles';
33
import InputLabel from '@material-ui/core/InputLabel';
4-
import Input from '@material-ui/core/Input';
54
import MenuItem from '@material-ui/core/MenuItem';
65
import ListSubheader from '@material-ui/core/ListSubheader';
76
import FormControl from '@material-ui/core/FormControl';
@@ -21,7 +20,7 @@ export default function GroupedSelect() {
2120
<div>
2221
<FormControl className={classes.formControl}>
2322
<InputLabel htmlFor="grouped-native-select">Grouping</InputLabel>
24-
<Select native defaultValue="" input={<Input id="grouped-native-select" />}>
23+
<Select native defaultValue="" id="grouped-native-select">
2524
<option aria-label="None" value="" />
2625
<optgroup label="Category 1">
2726
<option value={1}>Option 1</option>
@@ -35,7 +34,7 @@ export default function GroupedSelect() {
3534
</FormControl>
3635
<FormControl className={classes.formControl}>
3736
<InputLabel htmlFor="grouped-select">Grouping</InputLabel>
38-
<Select defaultValue="" input={<Input id="grouped-select" />}>
37+
<Select defaultValue="" id="grouped-select">
3938
<MenuItem value="">
4039
<em>None</em>
4140
</MenuItem>

docs/src/pages/components/selects/GroupedSelect.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
33
import InputLabel from '@material-ui/core/InputLabel';
4-
import Input from '@material-ui/core/Input';
54
import MenuItem from '@material-ui/core/MenuItem';
65
import ListSubheader from '@material-ui/core/ListSubheader';
76
import FormControl from '@material-ui/core/FormControl';
@@ -23,7 +22,7 @@ export default function GroupedSelect() {
2322
<div>
2423
<FormControl className={classes.formControl}>
2524
<InputLabel htmlFor="grouped-native-select">Grouping</InputLabel>
26-
<Select native defaultValue="" input={<Input id="grouped-native-select" />}>
25+
<Select native defaultValue="" id="grouped-native-select">
2726
<option aria-label="None" value="" />
2827
<optgroup label="Category 1">
2928
<option value={1}>Option 1</option>
@@ -37,7 +36,7 @@ export default function GroupedSelect() {
3736
</FormControl>
3837
<FormControl className={classes.formControl}>
3938
<InputLabel htmlFor="grouped-select">Grouping</InputLabel>
40-
<Select defaultValue="" input={<Input id="grouped-select" />}>
39+
<Select defaultValue="" id="grouped-select">
4140
<MenuItem value="">
4241
<em>None</em>
4342
</MenuItem>

docs/src/pages/components/slider/TrackFalseSlider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export default function TrackFalseSlider() {
5151
marks={marks}
5252
/>
5353
<div className={classes.margin} />
54-
<Typography id="track-false-multi-values-slider" gutterBottom>
55-
Removed track multi-values
54+
<Typography id="track-false-range-slider" gutterBottom>
55+
Removed track range slider
5656
</Typography>
5757
<Slider
5858
track={false}

docs/src/pages/components/slider/TrackFalseSlider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export default function TrackFalseSlider() {
5353
marks={marks}
5454
/>
5555
<div className={classes.margin} />
56-
<Typography id="track-false-multi-values-slider" gutterBottom>
57-
Removed track multi-values
56+
<Typography id="track-false-range-slider" gutterBottom>
57+
Removed track range slider
5858
</Typography>
5959
<Slider
6060
track={false}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ const EnhancedTableToolbar = (props) => {
159159
})}
160160
>
161161
{numSelected > 0 ? (
162-
<Typography className={classes.title} color="inherit" variant="subtitle1">
162+
<Typography className={classes.title} color="inherit" variant="subtitle1" component="div">
163163
{numSelected} selected
164164
</Typography>
165165
) : (
166-
<Typography className={classes.title} variant="h6" id="tableTitle">
166+
<Typography className={classes.title} variant="h6" id="tableTitle" component="div">
167167
Nutrition
168168
</Typography>
169169
)}

docs/src/pages/components/tables/EnhancedTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ const EnhancedTableToolbar = (props: EnhancedTableToolbarProps) => {
190190
})}
191191
>
192192
{numSelected > 0 ? (
193-
<Typography className={classes.title} color="inherit" variant="subtitle1">
193+
<Typography className={classes.title} color="inherit" variant="subtitle1" component="div">
194194
{numSelected} selected
195195
</Typography>
196196
) : (
197-
<Typography className={classes.title} variant="h6" id="tableTitle">
197+
<Typography className={classes.title} variant="h6" id="tableTitle" component="div">
198198
Nutrition
199199
</Typography>
200200
)}

docs/src/pages/components/tables/tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ A simple example of a dense table with no frills.
4141

4242
This example demonstrates the use of `Checkbox` and clickable rows for selection, with a custom `Toolbar`. It uses the `TableSortLabel` component to help style column headings.
4343

44-
The Table has been given a fixed width to demonstrate horizontal scrolling. In order to prevent the pagination controls from scrolling, the TablePagination component is used outside of the Table. (The ['Custom Table Pagination Action' example](#custom-table-pagination-action) below shows the pagination within the TableFooter.)
44+
The Table has been given a fixed width to demonstrate horizontal scrolling. In order to prevent the pagination controls from scrolling, the TablePagination component is used outside of the Table. (The ['Custom Table Pagination Action' example](#custom-pagination-actions) below shows the pagination within the TableFooter.)
4545

4646
{{"demo": "pages/components/tables/EnhancedTable.js", "bg": true}}
4747

docs/src/pages/landing/Quotes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ function Quote(props) {
149149
<Avatar src={avatar} alt={name} className={classes.avatar} />
150150
</Grid>
151151
<Grid item>
152-
<Typography variant="h6" color="textPrimary" className={classes.name}>
152+
<Typography component="div" variant="h6" color="textPrimary" className={classes.name}>
153153
{name}
154154
</Typography>
155-
<Typography variant="subtitle2" color="textSecondary">
155+
<Typography component="div" variant="subtitle2" color="textSecondary">
156156
{userName}
157157
</Typography>
158158
</Grid>

0 commit comments

Comments
 (0)