to only colorize icons in the prefix slot and/or target specific button classes. Other elements in the prefix slot will not be affected by this new color in this variant.
Of course you can also use custom variables instead of the red color.
vaadin-icon {
color: var(--my-icon-color, red);
}
that you then can override at any point as shown above.
The results will be more or less the same as with the above examples, but the resulting css might be easier to read than for instance vaadin-button[theme~="tertiary-inline"][theme~="icon"]
Strange that the vaadin-icon selector didn’t do the trick … I should probably learn a bit more about these selectors.
This is because the vaadin-icon uses the fill: currentColor internally and the color is inherited from the button. If you want to change that, you could also customize the fill CSS property directly: