Skip to content

Commit

Permalink
remove useless style
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 8, 2019
1 parent df87a50 commit f7bf663
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
3 changes: 0 additions & 3 deletions docs/src/pages/components/buttons/ContainedButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ export default function ContainedButtons() {
<Button variant="contained" disabled>
Disabled
</Button>
<Button variant="contained" color="primary" disableElevation>
Disable Elevation
</Button>
<Button variant="contained" color="primary" href="#contained-buttons">
Link
</Button>
Expand Down
3 changes: 0 additions & 3 deletions docs/src/pages/components/buttons/ContainedButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export default function ContainedButtons() {
<Button variant="contained" disabled>
Disabled
</Button>
<Button variant="contained" color="primary" disableElevation>
Disable Elevation
</Button>
<Button variant="contained" color="primary" href="#contained-buttons">
Link
</Button>
Expand Down
10 changes: 10 additions & 0 deletions docs/src/pages/components/buttons/DisableElevation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import Button from '@material-ui/core/Button';

export default function DisableElevation() {
return (
<Button variant="contained" color="primary" disableElevation>
Disable elevation
</Button>
);
}
10 changes: 10 additions & 0 deletions docs/src/pages/components/buttons/DisableElevation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import Button from '@material-ui/core/Button';

export default function DisableElevation() {
return (
<Button variant="contained" color="primary" disableElevation>
Disable elevation
</Button>
);
}
4 changes: 4 additions & 0 deletions docs/src/pages/components/buttons/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ 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.

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

## Text Buttons

[Text buttons](https://material.io/design/components/buttons.html#text-button)
Expand Down
3 changes: 0 additions & 3 deletions packages/material-ui/src/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ export const styles = theme => ({
boxShadow: 'none',
'&:hover': {
boxShadow: 'none',
'@media (hover: none)': {
boxShadow: 'none',
},
},
'&$focusVisible': {
boxShadow: 'none',
Expand Down

0 comments on commit f7bf663

Please sign in to comment.