Material-ui: [Table] IconButton's Tooltip is hidden

Created on 12 Jan 2017  路  9Comments  路  Source: mui-org/material-ui

When trying to view an IconButton's tooltip while contained in a table cell it seems to be hidden by an overflow of some kind.

bug 馃悰 Table

Most helpful comment

I got it fixed by adding style={ { overflow: 'visible' } } to the TableRowColumn that IconButton resides in.

All 9 comments

I literally came here to post this same issue.

licecap

@ffxsam I was able to work around this by applying styling to the call to fix the overflow. Not ideal but it works for now.

@patrickml Would you mind sharing what you did to fix it? I tried applying a really high z-index to the tooltip but it didn't work.

@ffxsam

{
  style: { overflow: 'visible', textAlign: 'right' },
}

I got it fixed by adding style={ { overflow: 'visible' } } to the TableRowColumn that IconButton resides in.

Same problem. Adding hoveredStyle={{ zIndex: 9999 }} to IconButton works for me.

Hello.
I've dealt with the same problem. My solution is just add wrapperStyle={{overflow: 'visible'}} bodyStyle={{overflow: 'visible'}} to <Table> component and style={{overflow: 'visible'}} to <TableRowColumn> component.

Working example:

<Table wrapperStyle={{overflow: 'visible'}} bodyStyle={{overflow: 'visible'}}>
    <TableHeader>
        <TableRow>
            <TableHeaderColumn>i'm column header text</TableHeaderColumn>
        </TableRow>
    </TableHeader>
    <TableBody>
        <TableRow>
            <TableRowColumn style={{overflow: 'visible'}}>
                <IconButton
                    tooltipPosition="bottom-right"
                    tooltip="Do U see me?">
                    <CheckIcon/>
                </IconButton>
            </TableRowColumn>
        </TableRow>
    </TableBody>
</Table>

Closing for #2230

Unfortunately this workaround fixes the tooltip issue, but causes problems with overflowing text in columns. Unless your data is going to match the size of your column exactly this will not work for you.

Was this page helpful?
0 / 5 - 0 ratings