Skip to content

Commit

Permalink
[docs] Increase button variant demos consistency (mui#19392)
Browse files Browse the repository at this point in the history
  • Loading branch information
theswerd authored and EsoterikStare committed Feb 13, 2020
1 parent 3e585fb commit 4d9c853
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/src/pages/components/buttons/TextButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export default function TextButtons() {
<Button color="primary">Primary</Button>
<Button color="secondary">Secondary</Button>
<Button disabled>Disabled</Button>
<Button href="#text-buttons">Link</Button>
<Button href="#text-buttons" color="primary">
Link
</Button>
</div>
);
}
4 changes: 3 additions & 1 deletion docs/src/pages/components/buttons/TextButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export default function TextButtons() {
<Button color="primary">Primary</Button>
<Button color="secondary">Secondary</Button>
<Button disabled>Disabled</Button>
<Button href="#text-buttons">Link</Button>
<Button href="#text-buttons" color="primary">
Link
</Button>
</div>
);
}
2 changes: 0 additions & 2 deletions docs/src/pages/components/buttons/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ components: Button, IconButton, ButtonBase
are high-emphasis, distinguished by their use of elevation and fill.
They contain actions that are primary to your app.

The last example of this demo show how to use an upload button.

{{"demo": "pages/components/buttons/ContainedButtons.js"}}

You can remove the elevation with the `disableElevation` prop.
Expand Down

0 comments on commit 4d9c853

Please sign in to comment.