Skip to content

Commit e2bfffb

Browse files
authored
update formatting
1 parent 19579f6 commit e2bfffb

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import Button from '@mui/material/Button';
2-
import Tooltip from '@mui/material/Tooltip';
1+
import Button from "@mui/material/Button";
2+
import Tooltip from "@mui/material/Tooltip";
33

44
export default function DisabledTooltips() {
55
return (
66
<Tooltip describeChild title="You don't have permission to do this">
7-
<Button disabled style={{ pointerEvents: 'auto' }}>A Disabled Button</Button>
7+
<Button disabled style={{ pointerEvents: "auto" }}>
8+
A Disabled Button
9+
</Button>
810
</Tooltip>
911
);
1012
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import Button from '@mui/material/Button';
2-
import Tooltip from '@mui/material/Tooltip';
1+
import Button from "@mui/material/Button";
2+
import Tooltip from "@mui/material/Tooltip";
33

44
export default function DisabledTooltips() {
55
return (
66
<Tooltip describeChild title="You don't have permission to do this">
7-
<Button disabled style={{ pointerEvents: 'auto' }}>A Disabled Button</Button>
7+
<Button disabled style={{ pointerEvents: "auto" }}>
8+
A Disabled Button
9+
</Button>
810
</Tooltip>
911
);
1012
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<Tooltip describeChild title="You don't have permission to do this">
2-
<Button disabled style={{ pointerEvents: 'auto' }}>A Disabled Button</Button>
2+
<Button disabled style={{ pointerEvents: "auto" }}>
3+
A Disabled Button
4+
</Button>
35
</Tooltip>

docs/data/material/components/tooltips/tooltips.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ When wrapping a Material UI component that inherits from `ButtonBase`, you shou
152152
{{"demo": "DisabledTooltips.js"}}
153153

154154
:::warning
155-
156155
By default, disabled elements like `<button>` are not keyboard focusable, so a `Tooltip` will only work for mouse users.
157-
158156
:::
159157

160158
## Transitions

0 commit comments

Comments
 (0)