Commit 5d04106
chore(textarea): moving ios+md specific margin to native file (#30984)
Issue number: resolves internal
---------
<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->
<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
The Ionic Textarea component, has a margin to avoid the textarea element
to overlap the label when the label placement is stacked. However, as
the ionic theme already has other styles that safeguard the label, this
margin, is causing a misalignment of the content:
<img width="457" height="174" alt="image"
src="https://github.com/user-attachments/assets/f04dce93-57f6-492f-aa54-5f037aaf943f"
/>
## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->
- In the new behavior, the corresponding CSS was moved in to the
`textarea.native.scss` file that is inherited by both ios and md themes,
leaving ionic theme unaffected.
- After the change:
<img width="457" height="174" alt="image"
src="https://github.com/user-attachments/assets/ef9cbb22-b5d2-4845-a01d-e0540fe1df70"
/>
## Does this introduce a breaking change?
- [ ] Yes
- [x] No
<!--
If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->
## Other information
<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
---------
Co-authored-by: ionitron <hi@ionicframework.com>1 parent 55c506d commit 5d04106
File tree
62 files changed
+14
-11
lines changed- core/src/components/textarea
- test
- fill/textarea.e2e.ts-snapshots
- highlight/textarea.e2e.ts-snapshots
- shape/textarea.e2e.ts-snapshots
- size/textarea.e2e.ts-snapshots
- states/textarea.e2e.ts-snapshots
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
62 files changed
+14
-11
lines changed
0 commit comments