24 Mar 2023 09:17 AM - last edited on 20 Apr 2023 08:33 AM by educampver
Hello,
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.
24 Mar 2023 09:30 AM - edited 24 Mar 2023 09:31 AM
Hi,
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.
24 Mar 2023 09:37 AM
The transition you provided is a bit different from what the migration script (partly) did i.e.:
Shouldn't I trust the migration?
24 Mar 2023 09:44 AM
You are right I just looked up the minimal -> default mapping, because this looked confusing.
24 Mar 2023 10:14 AM
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)?
24 Mar 2023 10:27 AM
Hi,
I followed up on that again and yes I can confirm exactly that.