Skip to content

Commit

Permalink
fixed docs default variant references
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Sep 21, 2020
1 parent d5834ee commit 7019d08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/src/pages/components/chips/ChipsPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function ChipsPlayground(props) {
onDelete: 'none',
avatar: 'none',
icon: 'none',
variant: 'default',
variant: 'filled',
size: 'medium',
});
const { color, onDelete, avatar, icon, variant, size } = state;
Expand All @@ -47,7 +47,7 @@ function ChipsPlayground(props) {

const colorToCode = color !== 'default' ? `color="${color}" ` : '';
const sizeToCode = size === 'small' ? `size="small" ` : '';
const variantToCode = variant !== 'default' ? `variant="${variant}" ` : '';
const variantToCode = variant !== 'filled' ? `variant="${variant}" ` : '';

let onDeleteToCode;
switch (onDelete) {
Expand Down Expand Up @@ -132,9 +132,9 @@ function ChipsPlayground(props) {
onChange={handleChange}
>
<FormControlLabel
value="default"
value="filled"
control={<Radio />}
label="default"
label="filled"
/>
<FormControlLabel
value="outlined"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/chips/chips.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ gain depth while clicked or touched.

You can use the `size` prop to define a small Chip.

### Default variant
### Filled variant

{{"demo": "pages/components/chips/SmallChips.js"}}

Expand Down

0 comments on commit 7019d08

Please sign in to comment.