Was looking to use New-UDTooltip
to better indicate the click-to-copy functionality we’ve added into our dashboards, but I don’t seem to be able to style it with overrides as I would the other Mui components within the light/dark theme we have.
It seems to be applying an inline style with a random GUID name, in this case t5458db87-f755-4b1e-8404-9f41954f148b
:
<style aria-hidden="true">
.t5458db87-f755-4b1e-8404-9f41954f148b {
color: #fff;
background: #337AB7;
border: 1px solid transparent;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-top {
margin-top: -10px;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-top::before {
border-top: 8px solid transparent;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-top::after {
border-left: 8px solid transparent;
border-right: 8px solid transparent;
bottom: -6px;
left: 50%;
margin-left: -8px;
border-top-color: #337AB7;
border-top-style: solid;
border-top-width: 6px;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-bottom {
margin-top: 10px;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-bottom::before {
border-bottom: 8px solid transparent;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-bottom::after {
border-left: 8px solid transparent;
border-right: 8px solid transparent;
top: -6px;
left: 50%;
margin-left: -8px;
border-bottom-color: #337AB7;
border-bottom-style: solid;
border-bottom-width: 6px;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-left {
margin-left: -10px;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-left::before {
border-left: 8px solid transparent;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-left::after {
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
right: -6px;
top: 50%;
margin-top: -4px;
border-left-color: #337AB7;
border-left-style: solid;
border-left-width: 6px;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-right {
margin-left: 10px;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-right::before {
border-right: 8px solid transparent;
}
.t5458db87-f755-4b1e-8404-9f41954f148b.place-right::after {
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
left: -6px;
top: 50%;
margin-top: -4px;
border-right-color: #337AB7;
border-right-style: solid;
border-right-width: 6px;
}
</style>
I tried using the overrides using that GUID or the __react_component_tooltip
class, and neither was fruitful. Has anyone had experience modifying these styles from PSU, with a dark/light theme?
Adam
Product: PowerShell Universal
Version: 3.7.14