# Change size of stacked ion-input label

**URL:** <https://forum.ionicframework.com/t/change-size-of-stacked-ion-input-label/235514>\
**Category:** Ionic Framework\
**Created:** [August 12, 2023, 7:09am UTC](https://forum.ionicframework.com/t/change-size-of-stacked-ion-input-label/235514 "2023-08-12T07:09:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vespinasgmailcom](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vespinasgmailcom/32/127150_2.png) [@vespinasgmailcom](https://forum.ionicframework.com/u/vespinasgmailcom)\
**Post date:** [August 12, 2023, 7:09am UTC](https://forum.ionicframework.com/t/change-size-of-stacked-ion-input-label/235514/1 "2023-08-12T07:09:23Z")

</div>

I have a stacked ion-input like this:

```auto
                <ion-item>
                    <ion-input label="Tu usuario o email" labelPlacement="stacked">
                   </ion-input>
                </ion-item>

```

I want to increase the font-size of the label but can’t find a way to target it with CSS. I tried with .label-text class but it didn’t work.

---

<div class="post-metadata">

**Author:** ![muhammadosmanali](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@muhammadosmanali](https://forum.ionicframework.com/u/muhammadosmanali)\
**Post date:** [October 31, 2024, 5:10am UTC](https://forum.ionicframework.com/t/change-size-of-stacked-ion-input-label/235514/2 "2024-10-31T05:10:39Z")

</div>

I am also facing this issue. is there any update on this?

---

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [October 31, 2024, 12:28pm UTC](https://forum.ionicframework.com/t/change-size-of-stacked-ion-input-label/235514/3 "2024-10-31T12:28:28Z")

</div>

I tried with `.label-text` and it does work in Vue if it is applied in your global CSS. It won’t work in scoped CSS since the label is in the Shadow DOM.

A better option though might be using the [Label Slot](https://ionicframework.com/docs/api/input#label-slot-experimental). It is experimental but I tried the following and it worked.

```html
<ion-input label-placement="stacked" value="hi@ionic.io">
  <div slot="label" style="font-size: 20px">Email <ion-text color="danger">(Required)</ion-text></div>
</ion-input>

```

Last resort is using JS to get access to the Shadow DOM. An example is [here](https://stackblitz.com/edit/q57cmt?file=src%2Fcomponents%2FExample.vue) and [here](https://forum.ionicframework.com/t/ionic-change-causes-css-to-stop-working-any-way-to-modify-shadow-dom-to-fix-it/238400/4).

It’s basically accessing it via `shadowRoot` on the Ionic component.

```js
myToast.value.$el.shadowRoot?.querySelector('.toast-content');

this.modal.shadowRoot
    ?.querySelector('slot')
    ?.assignedElements()
    .find(element => element.classList.contains('ion-page'))
    ?.classList.remove('ion-page')

```
