Showing results for 
Show  only  | Search instead for 
Did you mean: 

New variant values for Strato button

Dynatrace Advisor
Dynatrace Advisor


With the recent release of @dynatrace/strato-components-preview version 0.92.1, there were introduced breaking changes to the Button component i.e. variant prop. The migration script replaced only part of the old values, thus I have to replace the rest manually. 

How do the new values ("default", "emphasized", "accent") correspond to the old ones ('primary', 'secondary', 'minimal', 'critical')

Your AutomationEngine ally!

Dynatrace Enthusiast
Dynatrace Enthusiast

the design system team replace every minimal with default and for the rest:
* primary -> default
secondary -> emphasized
critical -> accent

I would recommend to use the same approach.

The transition you provided is a bit different from what the migration script (partly) did i.e.:

  • primary -> accent (and color "primary")
  • critical -> emphasized (and color "critical")

Shouldn't I trust the migration?

Your AutomationEngine ally!

You are right I just looked up the minimal -> default mapping, because this looked confusing. 

I'm sorry, but I'm not sure if I understood correctly. If I would follow the transition rules for the "variant" prop:

  • minimal -> default
  • primary -> accent (and color "primary")
  • secondary -> emphasized
  • critical -> emphasized (and color "critical")

Would it be correct? Could you please confirm (or not)?

Your AutomationEngine ally!

I followed up on that again and yes I can confirm exactly that. 

Featured Posts