vuetifyjs/vuetify

[Bug Report][3.7.0] v-text-field label color should be theme-on-background by default

Open

#20392 opened on Aug 26, 2024

View on GitHub
 (4 comments) (0 reactions) (0 assignees)TypeScript (40,995 stars) (7,139 forks)batch import
C: VLabelT: bughelp wanted

Description

Environment

Vuetify Version: 3.7.0 Vue Version: 3.4.38 Browsers: Chrome 127.0.0.0 OS: Windows 10

Steps to reproduce

Open repro

Expected Behavior

Both Label - default and Label - bg-white should be the same colour. rgba(var(--v-theme-on-background)) seems the most appropriate.

Actual Behavior

Label - default uses color from v-application, which is this: $application-color: rgba(var(--v-theme-on-background), var(--v-high-emphasis-opacity)) !default; So it adds high-emphasis-opacity to it, which is 0.87. On top of that, .v-label also has opacity: var(--v-medium-emphasis-opacity); So I think that high-emphasis-opacity is not needed in this case, and label shouldn't be using v-application color. Otherwise we'd have to add bg-white to all elements, or alter v-application color in theme which will affect regular text.

Reproduction Link

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

Contributor guide