bug: ion-input type="date" wrong height if empty
See original GitHub issueBug Report
The default height of ion-input type=“date” without value is too small. Should be the same height with or without value.
Ionic version:
[x] 4.4.0
Current behavior: If ion-input has no value, the default height is too small. It “grows” if you enter a value which makes the UI look bad.
Expected behavior: ion-input height is the same with or without value
Related code:
<ion-item no-padding>
<ion-label position="stacked">Date</ion-label>
<ion-input type="date"></ion-input>
</ion-item>
Other information:
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.4.0
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.4.1
Cordova:
cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.1, (and 12 other plugins)
System:
Android SDK Tools : 26.1.1 (/Users/pascalgraf/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.14.1 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
bug: ion-input type="date" wrong height if empty #18267
Bug Report The default height of ion-input type="date" without value is too small. Should be the same height with or without value.
Read more >ion-input: Custom Input Value Type Styling and CSS Properties
ion -input is a wrapper to the HTML input element, with custom value type styling and ... Helper & error text can be...
Read more >198959 – input[type=date] with empty value has shrunken height
This is fixable by adding a height to the `::-webkit-date-and-time-value` pseudo element. ``` input::-webkit-date-and-time-value { height: 1.5em ...
Read more >Not showing placeholder for input type="date" field
I took jbarlow idea, but I added an if in the onblur function so the fields only change its type if the value...
Read more >Checking if an input is empty with CSS - Zell Liew
You add a placeholder to your input · If the placeholder is hidden, it means the user typed something into the field ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello! I would like to work on this, just forked the repo locally to check it out.
I just checked it quickly in my Project and it does not seem like it