<ion-textarea class= 'custom" label="Outline textarea and add some more text here like this" labelPlacement="floating"fill="outline" placeholder="Enter text"></ion-textarea>
the label will be cut off. I noted any where in v7 if you use label=“” you cannot add very much text. attempting to edit css with
Just as an example can edit the css, but it will not add a word-wrap and of course class=“ion-text-wrap” has no effect. Is it possible to add text-wrap outside of going back to using ion-labels?
I wonder if you can inspect the floating label for it’s ion classes and append some styles to that class. However if that doesn’t work, my guess is Ionic would have to treat it similar to changing the counter styles, with another directive for label properties or exposed css vars
Yes it looks like it is baked in and really cannot seem to touch it. I would have to say ionic 7 has some great features, but labels in textarea and radio buttons are not ready for real world forms. the legacy labels still works for this version so I will not have to have to go back to version 6
I was able to target the label for a textarea. For a radio, I couldn’t figure it out so wrapped the label text in a span. The textarea could use some additional tweaks with spacing but the concept is there.
The answer for radio buttons works very well, but the code for textarea does not work across some Android devices. To be fair to the answer the new textarea is very buggy and does does not always render properly on Android devices and can fail from opening and closing pages on an iOS device.