I'm facing a challenge in customizing the MatButtonToggle as I am having issues with centering the label:
https://i.sstatic.net/LVzrm.png
Here is the template for reference:
<mat-button-toggle-group name="condition" aria-label="Condition">
<mat-button-toggle value="and" checked>
<div>ET</div>
</mat-button-toggle>
<mat-button-toggle value="or">OU</mat-button-toggle>
</mat-button-toggle-group>
Below are the style settings being used:
.mat-button-toggle-checked {
background-color: $secondary-color;
color: white;
}
mat-button-toggle-group {
height: 25px;
border-radius: 4px;
border: solid 1px $secondary-color;
}
mat-button-toggle {
font-size: 15px;
background-color: white;
color: $secondary-color;
}
If you have any suggestions on how to resolve this issue, please let me know. Thank you!