How to change the text color when clicked and back to its original color when not selected.
|
@using Syncfusion.Blazor.Buttons
<SfButton CssClass="e-flat" IsPrimary="true" Content="New"></SfButton>
<style>
.e-btn:focus {
color: #000000 !important;
background-color: #FFFFFF !important;
}
</style> |
For example when I clicked the Trashbin word, the color would change to white and when I clicked again it will back to it's ori
|
@using Syncfusion.Blazor.SplitButtons
<SfButtonGroup Mode="SelectionMode.Single">
<ButtonGroupButton>Left</ButtonGroupButton>
</SfButtonGroup>
<style>
.e-btn-group input:checked + label.e-btn{
background-color:white !important;
color:black !important;
}
</style> |