# Tags don't work for text inside button

**URL:** <https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952>\
**Category:** Questions\
**Created:** [December 9, 2023, 1:58pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952 "2023-12-09T13:58:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bukalter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bukalter/32/254789_2.png) [@bukalter](https://forum.bubble.io/u/bukalter)\
**Post date:** [December 9, 2023, 1:58pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/1 "2023-12-09T13:58:14Z")

</div>

Hi,  
I’m trying to cross out text inside button, but tags " " don’t work inside button.  
For normal text is fine, bot when I use it inside button it looks like on the screenshoot.  
Is there a different method to formatting text inside button (or crossed out font)?

![obraz](https://us1.discourse-cdn.com/bubble/original/3X/2/a/2a33cf72c820f638c7cb16fd70b3426a3efa5b38.png)  
 ![obraz](https://us1.discourse-cdn.com/bubble/original/3X/a/c/acf086e6495b2b5713d2b636d451ef1bd10cbee8.png)

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [December 9, 2023, 2:06pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/2 "2023-12-09T14:06:47Z")

</div>

> [@bukalter](#):
>
> Is there a different method to formatting text inside button (or crossed out font)?

Create a fake button using a group that contains text. I do this using a reuseable element and it’s now my favourite way to create and configure buttons with icons, loading states, different styles etc.

 ![CleanShot 2023-12-09 at 14.05.44@2x](https://us1.discourse-cdn.com/bubble/original/3X/f/6/f6765ac083106c29516b9a9a102003ec7403d929.png)  
 ![CleanShot 2023-10-27 at 17.43.45](https://us1.discourse-cdn.com/bubble/original/3X/b/3/b3c3bc8a602ef23da1603b9c07d59e408a9a60d7.gif)

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [December 9, 2023, 4:53pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/3 "2023-12-09T16:53:25Z")

</div>

Great stuff @georgecollier ! Thanks for sharing!

Another suggestion for tags to work is to … style the text element/s like a button 😃

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dorilama/32/226878_2.png) [@dorilama](https://forum.bubble.io/u/dorilama)\
**Post date:** [December 9, 2023, 7:28pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/4 "2023-12-09T19:28:54Z")

</div>

and be prepared to face a lot of pain when you are asked to make the group or text accessible 🙃

---

<div class="post-metadata">

**Author:** ![bukalter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bukalter/32/254789_2.png) [@bukalter](https://forum.bubble.io/u/bukalter)\
**Post date:** [December 10, 2023, 11:52am UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/5 "2023-12-10T11:52:35Z")

</div>

What do you mean??

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dorilama/32/226878_2.png) [@dorilama](https://forum.bubble.io/u/dorilama)\
**Post date:** [December 10, 2023, 3:04pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/6 "2023-12-10T15:04:32Z")

</div>

if you consume your app through assistive technologies a text or a div (a group) are not announced as interactive elements, therefore you don’t know that you can trigger actions with them. You need a proper html tag (like a button) or extra attributes, and bubble does not make your life easy with this.

---

<div class="post-metadata">

**Author:** ![code-escapee](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/code-escapee/32/195485_2.png) [@code-escapee](https://forum.bubble.io/u/code-escapee)\
**Post date:** [December 10, 2023, 4:46pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/7 "2023-12-10T16:46:32Z")

</div>

Super cool. How does the reusable generate the group?

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [December 10, 2023, 4:55pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/8 "2023-12-10T16:55:33Z")

</div>

![CleanShot 2023-12-10 at 16.48.39@2x](https://us1.discourse-cdn.com/bubble/original/3X/6/9/6927d89c92a73aa5bc4f575e3f28798d6070a3fd.png)

 ![CleanShot 2023-12-10 at 16.49.35@2x](https://us1.discourse-cdn.com/bubble/original/3X/2/1/218aeb7768bb531b39ab3abcd8d4dc07f8cb8ae9.png)

Just lots of conditionals on the 5 elements that make up the button (group, text, icon before, icon after, loading spinner).

Here’s a public editor view: [Nextui | Bubble Editor](https://bubble.io/page?type=custom&name=button&id=nextui&tab=tabs-1)

Reuseable-ising/componentising UI elements is my new favourite thing. Styles only get you so far. For instance, all of these input labels use one reuseable element:

 ![CleanShot 2023-12-10 at 16.51.14@2x](https://us1.discourse-cdn.com/bubble/original/3X/9/1/917fe91b601d5b031e7251ca7533e4f88cbc8f05.jpeg)  
 ![CleanShot 2023-12-10 at 16.52.18@2x](https://us1.discourse-cdn.com/bubble/original/3X/3/d/3d149e3806ad77f0bf5b45951ef15315fb228a69.png)

I also do the same for checkboxes which are ugly by default, badges/chips, section headers etc

 ![CleanShot 2023-12-10 at 16.55.23@2x](https://us1.discourse-cdn.com/bubble/original/3X/9/8/9860dfddffdb9040aaa02c7e3dc47ff91e6f9738.png)

---

<div class="post-metadata">

**Author:** ![bukalter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bukalter/32/254789_2.png) [@bukalter](https://forum.bubble.io/u/bukalter)\
**Post date:** [December 10, 2023, 8:00pm UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/9 "2023-12-10T20:00:20Z")

</div>

I have to try it. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![parthapatel0723](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/parthapatel0723/32/214181_2.png) [@parthapatel0723](https://forum.bubble.io/u/parthapatel0723)\
**Post date:** [May 29, 2026, 2:04am UTC](https://forum.bubble.io/t/tags-dont-work-for-text-inside-button/296952/10 "2026-05-29T02:04:52Z")

</div>

How do you handle the click on the button? Js?
