You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Vuetify v-app-bar and v-navigation-drawer components play nicely when setting their height and width as attributes vs inline styles (for example, v-content and v-navigation-drawer set their padding based on these) but I've found that I occasionally need to access the v-app-bar height or v-navigation-drawer width elsewhere in my webapp so having their values available globally would be super helpful.
Proposed solution
In a similar way that Vuetify stores theme colors in the $vuetify object AND as custom CSS properties, it'd be nice to access other global style constants (such as header height) via custom properties.
This way, you could set the height attribute via something like:
set in vuetify.ts:
KaelWD
changed the title
[Feature Request] Numbers + Strings in customProperties
[Feature Request] $vuetify.application values as customProperties
Oct 7, 2020
Problem to solve
The Vuetify
v-app-bar
andv-navigation-drawer
components play nicely when setting theirheight
andwidth
as attributes vs inline styles (for example,v-content
andv-navigation-drawer
set their padding based on these) but I've found that I occasionally need to access thev-app-bar
height orv-navigation-drawer
width elsewhere in my webapp so having their values available globally would be super helpful.Proposed solution
In a similar way that Vuetify stores theme colors in the
$vuetify
object AND as custom CSS properties, it'd be nice to access other global style constants (such as header height) via custom properties.This way, you could set the height attribute via something like:
set in
vuetify.ts
:in vue markup:
in CSS like:
Maybe this solution would come in handy in neat other ways too 🙃
The text was updated successfully, but these errors were encountered: