The behavior of DropDownList, ColorPickers and probably more controls changes when a tooltip is added to them. When the tooltip opens, the ".k-state-border-down" CSS-class is added to the (e.g. DropDown) container. However, in the context of the DropDown, this class means that the DropDown is opened and therefore, the styling changes accordingly.
The following two DOJOs demonstrate this bug:
We currently experience this behavior in the Editor widget when adding tooltips to tools that render the aforementioned controls.
Hi Michael,
As mentioned previously, the described behavior is expected, as the .k-state-border-down class will be added to the Tooltip target.
If you would like to customize the appearance you could remove the '.k-state-border-down ' class when the Tooltip is displayed as demonstrated below:
show: function() {
$('.k-dropdown-wrap').removeClass('k-state-border-down');
}
Here is the modified Dojo example.
Regards,
Neli
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Neli!
Thank you for your response.
I have tried out the dojo you provided, however, when looking closely, you can still see the .k-state-border-down class of the tooltip changing the appearance of the DropDownList (look at the bottom borders).
The problem I wanted to point out is that the tooltip adds a class to DOM elements that belong to a DropDownList and that it influences its appearance. In my humble opinion, that is some kind of interference that should not happen. Please correct me if I am wrong.
Kind regards, Michael
Hi Michael,
The described class will be applied on the target when it is hovered and the Tooltip is displayed. You could inspect the Tooltip Index demo where the ".k-state-border-down" is added to the <span> elements when they hovered.
In a scenario with DropDownLists, you could try to use 'k-dropdown-wrap' class for the filter. Here is the modified Dojo example.
I hope this helps.
Regards,
Neli
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.