Skip to content

Commit 90f49a7

Browse files
DrPhiloliviertassinari
authored andcommitted
[SpeedDialAction] Follow the classes root convention (#13634)
* Allow styling of the tooltip * use the root convention
1 parent 718ef69 commit 90f49a7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/material-ui-lab/src/SpeedDialAction/SpeedDialAction.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import Fab from '@material-ui/core/Fab';
77
import Tooltip from '@material-ui/core/Tooltip';
88

99
export const styles = theme => ({
10+
/* Styles applied to the root element. */
11+
root: {},
1012
/* Styles applied to the `Button` component. */
1113
button: {
1214
margin: 8,
@@ -101,6 +103,7 @@ class SpeedDialAction extends React.Component {
101103
placement={tooltipPlacement}
102104
onClose={this.handleTooltipClose}
103105
onOpen={this.handleTooltipOpen}
106+
className={classes.root}
104107
open={open && this.state.tooltipOpen}
105108
{...other}
106109
>

pages/lab/api/speed-dial-action.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ This property accepts the following keys:
3636

3737
| Name | Description |
3838
|:-----|:------------|
39+
| <span class="prop-name">root</span> | Styles applied to the root element.
3940
| <span class="prop-name">button</span> | Styles applied to the `Button` component.
4041
| <span class="prop-name">buttonClosed</span> | Styles applied to the `Button` component if `open={false}`.
4142

0 commit comments

Comments
 (0)