# Mouse cursor on text and rectangle grouped to a button

**URL:** <https://community.penpot.app/t/mouse-cursor-on-text-and-rectangle-grouped-to-a-button/8210>\
**Category:** Ask the community\
**Created:** [March 20, 2025, 12:02pm UTC](https://community.penpot.app/t/mouse-cursor-on-text-and-rectangle-grouped-to-a-button/8210 "2025-03-20T12:02:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TRM](https://avatars.discourse-cdn.com/v4/letter/t/b5ac83/32.png) [@TRM](https://community.penpot.app/u/TRM)\
**Post date:** [March 20, 2025, 12:02pm UTC](https://community.penpot.app/t/mouse-cursor-on-text-and-rectangle-grouped-to-a-button/8210/1 "2025-03-20T12:02:20Z")

</div>

Hi,

In latest penpot (online) I grouped a text and a rectangle into a button and added a click interaction.  
If I run the flow and hover the mouse over the rectangle I get a hand cursor as expected.  
But if I move the mouse over the text the cursor turns into ‘normal’ pointer?  
I would expect, if both elements are grouped that anywhere I move the mouse inside the button a hand cursor is displayed.

What I am missing please?

---

<div class="post-metadata">

**Author:** ![carolina.portugal](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/carolina.portugal/32/36_2.png) [@carolina.portugal](https://community.penpot.app/u/carolina.portugal)\
**Post date:** [March 20, 2025, 4:47pm UTC](https://community.penpot.app/t/mouse-cursor-on-text-and-rectangle-grouped-to-a-button/8210/2 "2025-03-20T16:47:20Z")

</div>

Hey, did you just group it or did you create a component?

---

<div class="post-metadata">

**Author:** ![TRM](https://avatars.discourse-cdn.com/v4/letter/t/b5ac83/32.png) [@TRM](https://community.penpot.app/u/TRM)\
**Post date:** [March 21, 2025, 1:46pm UTC](https://community.penpot.app/t/mouse-cursor-on-text-and-rectangle-grouped-to-a-button/8210/3 "2025-03-21T13:46:41Z")

</div>

@carolina.portugal

Thanks for reply, I just grouped both elements.  
But if I create a component out of both elements then it works as expected.

Thanks 🙂!
