Skip to content

bug: ion-textarea legacy padding does not work anymore #27218

@andreas-aeschlimann

Description

@andreas-aeschlimann

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

If you style an ion-textarea with --padding-top, the padding is applied in the :after part of the element. This means that the text cursor remains on the left top and will not go down even with a large padding.

Expected Behavior

Using --padding-*** CSS properties, the padding should be correctly set.

Steps to Reproduce

  1. Create a legacy ion-textarea
  2. Try to apply the CSS variable --padding-top: 1rem
  3. There will be no padding

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 7.0.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.0.2
@angular-devkit/build-angular : 15.2.6
@angular-devkit/schematics : 15.2.6
@angular/cli : 15.2.6
@ionic/angular-toolkit : 9.0.0

Capacitor:

Capacitor CLI : 4.7.3
@capacitor/android : 4.7.3
@capacitor/core : 4.7.3
@capacitor/ios : 4.7.3

Cordova:

Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

cordova-res : 0.15.4
native-run : 1.7.2

System:

NodeJS : v19.4.0 (/opt/homebrew/Cellar/node/19.4.0/bin/node)
npm : 9.2.0
OS : macOS Unknown
Xcode : Xcode 14.3 Build version 14E222b

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions