Closed nmummau closed 3 years ago
@KaelWD
I cannot figure out how to remove the padding from the v-text-field input
and get Safari to work nicely.
In the codepen it works -- meaning when testing the codepen using a real Safari browser on my wife's Macbook, the text displays just fine -- but when I make the same css change in my app's scoped style, and then deploy my app, this does not fix my app on a Safari browser. I've even tried setting padding: 0 important!;
. Still no success. Any thoughts?
This Issue is being closed due to inactivity.
If you have any questions, please reach out to us in our Discord community.
I had the same issue. To solve this, I had to override these sass variables:
$text-field-padding: 0;
$text-field-line-height: unset;
Environment
Vuetify Version: 2.3.10 Vue Version: 2.6.10 Browsers: Safari OS: Linux x86_64
Steps to reproduce
Open this codepen in Safari and notice the bug. You will not notice this in Chrome (tested on Android, linux, and Windows).
It happens because the v-text-field has a class settting the "font-size: 2em;"
confirmed using lambdatest.com to simulate a Safari browser since I'm a linux developer and do not have an iPhone sitting around to test with.
Expected Behavior
properly center text inside v-text-field when font-size is set to a special size via a css class
Actual Behavior
Safari is clipping the text inside a v-text-field when font-size is set to a special size via a css class
Reproduction Link
https://codepen.io/nmummau/pen/oNzvGoy
Other comments
Kael confirmed in discord here
Kael
Me
Kael