toolbar buttons white on hover

when hovering over a grid toolbar button it's color changes to white, which is almost un-seeable on the lightgray background - see attached screencapture.

Image_7292_1738681250100

I would like the color to change to black and possibly be bold​.


I have tried to do this through:

.e-tbar-btn:hover{

    color:gray;

}

with no effect. Can you help?


5 Replies

SK Sanjay Kumar Suresh Syncfusion Team February 6, 2025 03:10 AM UTC

Hi Gil Shalit,

We have reviewed your query, and it appears that you want to change the background color and font of the toolbar item. We have achieved your requirement using CSS styling. Please refer to the screenshot, sample, and code snippet provided for your reference.

Sample : https://blazorplayground.syncfusion.com/embed/rthIZBZISpXfcpKg?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5



<style>

  

    .e-grid .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn:hover {

        background-color: red;

        font-weight: bold;

    }

 

</style>


Regards,
Sanjay Kumar Suresh



GS gil shalit replied to Sanjay Kumar Suresh February 6, 2025 04:51 PM UTC

Thank you but your suggestion had no effect. I was succesful with

.e-toolbar-item:hover{

    background-color: gray;

    font-weight: bold;

    border-radius:3px;

}




GS gil shalit replied to Sanjay Kumar Suresh February 6, 2025 04:51 PM UTC

Thank you but your suggestion had no effect. I was succesful with

.e-toolbar-item:hover{

    background-color: gray;

    font-weight: bold;

    border-radius:3px;

}




GS gil shalit replied to Sanjay Kumar Suresh February 6, 2025 04:51 PM UTC

Thank you but your suggestion had no effect. I was succesful with

.e-toolbar-item:hover{

    background-color: gray;

    font-weight: bold;

    border-radius:3px;

}




NP Naveen Palanivel Syncfusion Team February 10, 2025 03:49 AM UTC

Hi gil shalit,


We are glad to hear that the reported issue resolved at your end. Kindly get back to us if you have further queries. As always we will be assist you.


Regards,

Naveen


Loader.
Up arrow icon