Hi guys,

I would like to know why Button.STYLE_LINK is deprecated and the right way is to use it from the theme?
Like in Reindeer.BUTTON_LINK

Maybe I am thinking too much in a OO way, does someone has a good explanation?

The reason is because the core should not expect theme developers to create any additional style if they choose not to, one style per component should be enough. If someone decided to create a custom theme from scratch, starting from the Base theme, they should implement all of the styles offered by all component constants, like Button.STYLE_LINK, and that’s what we’re trying to avoid.

So all additional component styles should be defined in the actual theme that’s being used, hence Reindeer.BUTTON_LINK.