# New variant values for Strato button

**URL:** <https://community.dynatrace.com/t/new-variant-values-for-strato-button/38991>\
**Category:** Developer Q&A Forum\
**Tags:** strato\
**Created:** [March 24, 2023, 9:17am UTC](https://community.dynatrace.com/t/new-variant-values-for-strato-button/38991 "2023-03-24T09:17:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michal\_zawislak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michal_zawislak/32/13613_2.png) [@michal\_zawislak](https://community.dynatrace.com/u/michal_zawislak)\
**Post date:** [March 24, 2023, 9:17am UTC](https://community.dynatrace.com/t/new-variant-values-for-strato-button/38991/1 "2023-03-24T09:17:20Z")

</div>

Hello,

With the recent release of&nbsp;@dynatrace/strato-components-preview version&nbsp;0.92.1, there were introduced breaking changes to the Button component i.e. variant prop.&nbsp;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’)

---

<div class="post-metadata">

**Author:** ![s\_eilmsteiner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/s_eilmsteiner/32/32799_2.png) [@s\_eilmsteiner](https://community.dynatrace.com/u/s_eilmsteiner)\
**Post date:** [March 24, 2023, 9:30am UTC](https://community.dynatrace.com/t/new-variant-values-for-strato-button/38991/2 "2023-03-24T09:30:14Z")

</div>

Hi,  
the design system team replace every minimal with default and for the rest:  
\* primary → default  
\*&nbsp;secondary → emphasized  
\*&nbsp;critical → accent

I would recommend&nbsp;to use the same approach.

---

<div class="post-metadata">

**Author:** ![michal\_zawislak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michal_zawislak/32/13613_2.png) [@michal\_zawislak](https://community.dynatrace.com/u/michal_zawislak)\
**Post date:** [March 24, 2023, 9:37am UTC](https://community.dynatrace.com/t/new-variant-values-for-strato-button/38991/3 "2023-03-24T09:37:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![s\_eilmsteiner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/s_eilmsteiner/32/32799_2.png) [@s\_eilmsteiner](https://community.dynatrace.com/u/s_eilmsteiner)\
**Post date:** [March 24, 2023, 9:44am UTC](https://community.dynatrace.com/t/new-variant-values-for-strato-button/38991/4 "2023-03-24T09:44:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![michal\_zawislak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michal_zawislak/32/13613_2.png) [@michal\_zawislak](https://community.dynatrace.com/u/michal_zawislak)\
**Post date:** [March 24, 2023, 10:14am UTC](https://community.dynatrace.com/t/new-variant-values-for-strato-button/38991/5 "2023-03-24T10:14:14Z")

</div>

I’m sorry, but I’m not sure if I understood correctly.&nbsp;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)?

---

<div class="post-metadata">

**Author:** ![s\_eilmsteiner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/s_eilmsteiner/32/32799_2.png) [@s\_eilmsteiner](https://community.dynatrace.com/u/s_eilmsteiner)\
**Post date:** [March 24, 2023, 10:27am UTC](https://community.dynatrace.com/t/new-variant-values-for-strato-button/38991/6 "2023-03-24T10:27:05Z")

</div>

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