Gray background-color Toolbar button after clicking

Hi,


Is there a solution to prevent the gray background color of the button in SfGrid Toolbar after clicking, when moving the cursor away from it?



Here is a video link where you can see the problem I'm talking about starting at 5:20:

https://www.youtube.com/watch?v=Y42u-hY5MqI


Regards,

Peter



1 Reply

AG Ajithkumar Gopalakrishnan Syncfusion Team May 23, 2023 07:18 AM UTC

Hi Elek,

Greetings from Syncfusion.

Query#:-Is there a solution to prevent the gray background color of the button in SfGrid Toolbar after clicking, when moving the cursor away from it?

To achieve your requirement, (to avoid the gray background color of the button in the SfGrid Toolbar after clicking), we have customized the default CSS class of the toolbar item. I have attached the CSS code and also provided a sample for your reference.

Hover.PNG

Reference:

https://blazor.syncfusion.com/documentation/toolbar/style#customizing-the-hover-state-of-toolbar-control
https://blazor.syncfusion.com/documentation/toolbar/style#customizing-selected-item-of-toolbar-control

Regards,
Ajithkumar G


Attachment: BackGround_64a75cc0.zip

Loader.
Up arrow icon