# Variants and auto-width text behaviour

**URL:** <https://community.penpot.app/t/variants-and-auto-width-text-behaviour/9913>\
**Category:** Ask the community\
**Tags:** variants\
**Created:** [September 28, 2025, 4:04pm UTC](https://community.penpot.app/t/variants-and-auto-width-text-behaviour/9913 "2025-09-28T16:04:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![XSD](https://avatars.discourse-cdn.com/v4/letter/x/b5e925/32.png) [@XSD](https://community.penpot.app/u/XSD)\
**Post date:** [September 28, 2025, 4:04pm UTC](https://community.penpot.app/t/variants-and-auto-width-text-behaviour/9913/1 "2025-09-28T16:04:44Z")

</div>

Hi everyone,

I’d like to ask if the current behaviour of variants with text components set to _auto-width_ is the expected one, a bug, or if I might be doing something wrong.

I’ll attach a short video showing how to reproduce the issue.

The problem: I created a component styled as a button, making sure the text is set to _auto-width_. Then I created a variant of this component with a different text size.

When generating instances of the component, if I change the text length and then switch to the variant with the different font size, the text in the instance keeps the previous width and changes from _auto-width_ to _fixed_.

[![](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/9/99bda37968c2a5df0aebdee7070fc942d62a598a.jpeg "Variants and auto-witdh text behaviour") ](https://www.youtube.com/watch?v=VqpY91yatzc)

Xavier S

---

<div class="post-metadata">

**Author:** ![LauraKalbag](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/laurakalbag/32/5014_2.png) [@LauraKalbag](https://community.penpot.app/u/LauraKalbag)\
**Post date:** [September 29, 2025, 9:19am UTC](https://community.penpot.app/t/variants-and-auto-width-text-behaviour/9913/2 "2025-09-29T09:19:57Z")

</div>

I can’t see that you’re doing anything wrong. Looks like a bug to me!

---

<div class="post-metadata">

**Author:** ![miryamgduque](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/miryamgduque/32/39_2.png) [@miryamgduque](https://community.penpot.app/u/miryamgduque)\
**Post date:** [September 29, 2025, 10:22am UTC](https://community.penpot.app/t/variants-and-auto-width-text-behaviour/9913/3 "2025-09-29T10:22:44Z")

</div>

Yes, definitely a bug. You can track it [here](https://tree.taiga.io/project/penpot/issue/12172). Thanks for noticing!

---

<div class="post-metadata">

**Author:** ![XSD](https://avatars.discourse-cdn.com/v4/letter/x/b5e925/32.png) [@XSD](https://community.penpot.app/u/XSD)\
**Post date:** [September 30, 2025, 7:56am UTC](https://community.penpot.app/t/variants-and-auto-width-text-behaviour/9913/4 "2025-09-30T07:56:51Z")

</div>

Thank You, let me know if you need some test.
