Hi all!
I am trying to style a tooltip. Can someone help to reach the look I will attach with a photo? White background, little shadow behind.
Thank you.
Hi Valentyna,
That looks a lot like the Balloon widget that comes standard with OutSystems UI. See https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Patterns/Using_Traditional_Web_Patterns/Content/Balloon
Isn't that what you are looking for?
Regards,
Lennart
Hi Valentyna Boiko,
Please find solution in below discussion related add tooltip border and border color ,
https://www.outsystems.com/forums/discussion/67603/add-tooltip-border-and-border-color/
Hope it helps you.
Thanks,
Ramesh
Hello Valentyna,
1. Inspect the tooltip element in the browser as shown below. You will get the class of tooltip.
2. Copy and paste the entire class in the CSS editor:
3. Make the changes like I have done for background color which is red. Then the changes will reflect on the browser.
I have attached demo OML as well.
Hope it Helps :)
Hi @Shubham Doshi ,
I have tried implementing this but the OutsystemsUI Theme overrides it.
Change the color var(--color-ramp-red) to the color you want to use.
.osui-tooltip__content{ cursor:pointer; position:inherit;}.osui-tooltip__balloon-wrapper__balloon { background-color: #fafafa; color: black; border-block-end: 1px; border-block-start: 1px; border-block-style: solid; border-block-color: var(--color-kramp-red); padding: 5px; border-radius: 10px; display: block !important; border-style: solid; border-width: 2px; padding-left: 10px; padding-right: 10px; padding-top: 5px; padding-bottom: 5px; border-color: var(--color-kramp-red);}.osui-tooltip__balloon-wrapper { overflow:visible;}.osui-tooltip__balloon-wrapper.right .osui-tooltip__balloon-wrapper__balloon:before { border-color: transparent var(--color-kramp-red) transparent transparent; margin-left: -2px; }.osui-tooltip__balloon-wrapper.left .osui-tooltip__balloon-wrapper__balloon:before { border-color: transparent transparent transparent var(--color-kramp-red); margin-left: 2px; }.osui-tooltip__balloon-wrapper.bottom .osui-tooltip__balloon-wrapper__balloon:before, .osui-tooltip__balloon-wrapper.bottom-left .osui-tooltip__balloon-wrapper__balloon:before, .osui-tooltip__balloon-wrapper.bottom-right .osui-tooltip__balloon-wrapper__balloon:before { border-color: transparent transparent var(--color-kramp-red) transparent; margin-top: -2px;}.osui-tooltip__balloon-wrapper.top .osui-tooltip__balloon-wrapper__balloon:before, .osui-tooltip__balloon-wrapper.top-left .osui-tooltip__balloon-wrapper__balloon:before, .osui-tooltip__balloon-wrapper.top-right .osui-tooltip__balloon-wrapper__balloon:before{ border-color: var(--color-kramp-red) transparent transparent transparent; margin-top: 2px;}
.osui-tooltip__content{
cursor:pointer;
position:inherit;
}
.osui-tooltip__balloon-wrapper__balloon {
background-color: #fafafa;
color: black;
border-block-end: 1px;
border-block-start: 1px;
border-block-style: solid;
border-block-color: var(--color-kramp-red);
padding: 5px;
border-radius: 10px;
display: block !important;
border-style: solid;
border-width: 2px;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
padding-bottom: 5px;
border-color: var(--color-kramp-red);
.osui-tooltip__balloon-wrapper {
overflow:visible;
.osui-tooltip__balloon-wrapper.right .osui-tooltip__balloon-wrapper__balloon:before {
border-color: transparent var(--color-kramp-red) transparent transparent;
margin-left: -2px;
.osui-tooltip__balloon-wrapper.left .osui-tooltip__balloon-wrapper__balloon:before {
border-color: transparent transparent transparent var(--color-kramp-red);
margin-left: 2px;
.osui-tooltip__balloon-wrapper.bottom .osui-tooltip__balloon-wrapper__balloon:before, .osui-tooltip__balloon-wrapper.bottom-left .osui-tooltip__balloon-wrapper__balloon:before, .osui-tooltip__balloon-wrapper.bottom-right .osui-tooltip__balloon-wrapper__balloon:before {
border-color: transparent transparent var(--color-kramp-red) transparent;
margin-top: -2px;
.osui-tooltip__balloon-wrapper.top .osui-tooltip__balloon-wrapper__balloon:before, .osui-tooltip__balloon-wrapper.top-left .osui-tooltip__balloon-wrapper__balloon:before, .osui-tooltip__balloon-wrapper.top-right .osui-tooltip__balloon-wrapper__balloon:before{
border-color: var(--color-kramp-red) transparent transparent transparent;
margin-top: 2px;
.popup-info-icon-color {
color:var(--color-kramp-red)