vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.8.8] Date picker title padding exists even if title slot is overrided

Open rajkadhi10 opened this issue 7 months ago • 1 comments

Environment

Vuetify Version: 3.8.8 Vue Version: 3.5.16 Browsers: Chrome 136.0.0.0 OS: Linux x86_64

Steps to reproduce

Create a date picker component and override title slot.

Expected Behavior

Title should not have the padding if slot is being overrided.

Actual Behavior

Title is having the default padding even if slot is being overrided.

Reproduction Link

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

Other comments

Also if hide-header prop is used then it hides the title along with header, I think this should not be happened.

rajkadhi10 avatar Jun 09 '25 12:06 rajkadhi10

This is expected since you are providing a slot for header so whether it has or empty child it will provide default style and the props hide-header is also working as expected since the props takes precedent over the slot. @johnleider what do you think about this?

jcjp avatar Jun 14 '25 12:06 jcjp

I think that we need to ultimately provide 2 types of slots (in most cases). Ones that put you inside of the component, in this instance VPickerTitle, and one that would replace VPickerTitle entirely.

johnleider avatar Jun 17 '25 15:06 johnleider