Looking to enhance the appearance of a Material UI tooltip arrow with custom styling, but struggling to set the border and background colors.
Here's the current configuration in React:
const useStylesBootstrap = makeStyles(theme => ({
arrow: {
// color: '#E6E8ED',
border: '1px solid #E6E8ED',
},
tooltip: {
backgroundColor: theme.palette.common.white,
border: '1px solid #E6E8ED',
color: '#4A4A4A'
},
}));
This is my desired outcome:
https://i.sstatic.net/UHCZ6.png
The goal is to have a gray border for the triangle and a white background.
In the current setup, adjusting the border setting affects the square around the triangle rather than the triangle itself. In non-Material UI contexts, this issue could be resolved using the pseudo-elements :before
and :after
. Wondering if there is a way to address this within Material UI's customization options. Any guidance from those experienced with Material UI would be greatly appreciated.