Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table] IconButton's Tooltip is hidden #5912

Closed
patrickml opened this issue Jan 12, 2017 · 9 comments
Closed

[Table] IconButton's Tooltip is hidden #5912

patrickml opened this issue Jan 12, 2017 · 9 comments
Labels
bug 🐛 Something doesn't work component: table This is the name of the generic UI component, not the React module!

Comments

@patrickml
Copy link

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.

@mbrookes mbrookes added bug 🐛 Something doesn't work component: table This is the name of the generic UI component, not the React module! labels Jan 14, 2017
@mbrookes mbrookes changed the title IconButton's Tooltip is hidden in table [Table] IconButton's Tooltip is hidden Jan 14, 2017
@ffxsam
Copy link
Contributor

ffxsam commented Feb 15, 2017

I literally came here to post this same issue.

licecap

@patrickml
Copy link
Author

@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.

@ffxsam
Copy link
Contributor

ffxsam commented Feb 15, 2017

@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.

@patrickml
Copy link
Author

@ffxsam

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

@halayli
Copy link

halayli commented Mar 5, 2017

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

@UFOwl
Copy link

UFOwl commented Mar 17, 2017

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

@ShaggyYeti
Copy link

ShaggyYeti commented Jul 15, 2017

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>

@oliviertassinari
Copy link
Member

Closing for #2230

@Lazer32
Copy link

Lazer32 commented Nov 28, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: table This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

8 participants