-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Popover Tip Addition #10772
Comments
@kaufmann42 It's a good question. I would love to have a demo in the documentation demonstrating it. |
I'll definitely be working on it and I'll post it here once I get it working. Maybe hopefully get some feedback on how I went about it :) p.s. Sorry there was something you didn't enjoy about this issue creation @manAbl - feel free to let me know what it was so I can avoid it for next time/fix it. |
I got this working by providing a theme with an Something like: const theme = createMuiTheme({
overrides: {
MuiTooltip: {
tooltip: {
'&:before': {
/* tricky doubly-quoted empty string so mui parses it as truly empty */
content: '""',
display: 'block',
width: '0',
height: '0',
position: 'absolute',
borderLeft: '10px solid transparent',
borderRight: '10px solid transparent',
/* border color should probably match whatever your tooltip color is */
borderTop: '10px solid #000',
left: 'calc(50% - 10px)',
top: '100%'
}
}
}
}) It's a downward triangle but you get the idear. |
Oh, my bad. I have forgotten, it was fixed in #12085. |
Annnnd I totally missed that. Reinventing the wheel darn it! Thanks for the links |
@tjefferson08 It's not released yet. |
Anyone have any idea of the best way to go about changing the look of the popover to include a small triangle up top (making it look more like a tooltip). Any help advice would be appreciated.
Context
For the project I'm working on the generally accepted components by users usually contain a "tooltipish" tip on the top of the box. We think it's a little abrupt (and menu like) for our needs to leave out this indicator.
Your Environment
The text was updated successfully, but these errors were encountered: