Override `getColors()` from enum for toggle buttons

Hi all.

I'm using an enum in 2 places: a badge column and a toggle button.

The badges need to use the colors defined in the enum, but I don't want the toggle button using them. The toggle should just use the default styling (highlight the selected option using the primary color).

Any idea how I can do this?
Was this page helpful?