vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.0.0-beta.14] caret is not center aligned in textfield with hide-details auto & text field variant plain

Open jd-solanki opened this issue 2 years ago • 1 comments

Environment

Vuetify Version: 3.0.0-beta.14 Vue Version: 3.2.41 Browsers: Chrome 106.0.0.0 OS: Mac OS 10.15.7

Steps to reproduce

  1. Visit the link
  2. Check the alignment of the caret

Expected Behavior

caret should be center aligned

Actual Behavior

caret is at the bottom

Reproduction Link

https://play.vuetifyjs.com/#...

jd-solanki avatar Oct 21 '22 10:10 jd-solanki

This is because of hide-details set to auto. All three densities have this issue

jd-solanki avatar Nov 02 '22 11:11 jd-solanki

The is because you've set the background on the entire v-input element. plain is the same as underlined just without the bottom border.

KaelWD avatar Nov 04 '22 07:11 KaelWD

The is because you've set the background on the entire v-input element. plain is the same as underlined just without the bottom border.

Here's with icon: https://play.vuetifyjs.com/#eNpVUEFOwzAQ/IrlS0DCSQs9oRSJCy9AXDAHE2/pSvHasrcRqOrfWauNlMzJ45ldz/jzrF9TaqcT6GfdlyFjYlWAT+nFEoYUM6uzynBQF3XIMahGrI0lS0OkwiqUH7Wv+l3T3Fvqu+sKGRbCENLoGIQp1U/GpbpVCYQEh3Rjwj/e4ZffEEY/X1WIK3oY91bLO1YvJQ9UkP9EGmJIbuC1PLmMjlhkSYC0Fo/owXhgh2MRhztxXBtmpAwJyBskgmxQKtcoHs0xBliOdHOvblGskmvlvlt8hb486Kf2sd1tdT1s2o35liztdqe//gH103e0

jd-solanki avatar Nov 04 '22 07:11 jd-solanki

Compare with variant="underlined", it's the same and not a bug.

I think single-line is supposed to center-align it though, and does on other variants.

KaelWD avatar Nov 04 '22 07:11 KaelWD

With underline: Screenshot 2022-11-04 at 1 17 11 PM

With underlined: Screenshot 2022-11-04 at 1 18 16 PM

Should we consider this as BUG?

Probably you can set the best title for this issue as you know what's going under the hood.

jd-solanki avatar Nov 04 '22 07:11 jd-solanki

@yuwu9145 Can you see if this is something we can make better or is it as good as it's going to get?

johnleider avatar Jan 26 '24 19:01 johnleider

For plain/underlined variants, it should be ok to centralise input when label is not presented, same as how filled variant behaves.

But it's a small & low priority improvement as issue in this ticket can be simply resolved by using "filled variant": demo

Screenshot 2024-01-27 at 11 21 30 am

yuwu9145 avatar Jan 27 '24 00:01 yuwu9145