24 Mar 2023 02:17 AM - last edited on 20 Apr 2023 12:33 AM by educampver
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')
Solved! Go to Solution.
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.:
Shouldn't I trust the migration?
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:
Would it be correct? Could you please confirm (or not)?
I followed up on that again and yes I can confirm exactly that.