Replies: 4 comments 1 reply
-
currentColor is inherited so you can just target
Yes we need to figure out a readable way to display what components and composables everything is based on.
I've had this problem a lot too, I almost never end up using variables when I need to customise something because it's 10x more work than just overriding the styles directly. We really need to only be exposing things that someone might realistically want to change. |
Beta Was this translation helpful? Give feedback.
-
No matter what I try I cannot override the black outline that appears when the v-select is focused. I've tried all of the following:
Can't find the right style to override even with Chrome developers tools. |
Beta Was this translation helpful? Give feedback.
-
this is current : |
Beta Was this translation helpful? Give feedback.
-
all bro just here .v-field__outline { thanks me later |
Beta Was this translation helpful? Give feedback.
-
Suppose I got this select:
How do I go about changing the outline color?
In the documentation it exposes basically no Sass variables. Turns out I had to move over to the documentation of VField (no mention of this anywhere in VSelect's documentation 😑) and there's a whole list of weirdly specific Sass variables to override. It's all over the place, in terms of how weirdly specific some of them are, and how a lot of closely related ones are missing (i.e. hardcoded in vuetify's own styles).
That problem exists here too: There is
$field-border-radius
and$field-border-width
, but NOT$field-border-color
.Why? Looking into the source code it looks like the outline color is hard-coded to
currentColor
. Again, why? Why are controls so fantastically customisable, and yet so harshly hardcoded at the same time? I don't get that.A very dirty hack, you might imagine, would be to override it using CSS rather than any Sass variable.
Well, the outline color is specified in this seletor:
And I don't want to override that in my Sass code. It's way too obnoxious, peering too deeply into the framework, and therefor it is not a sustainable solution to override it like that.
Beta Was this translation helpful? Give feedback.
All reactions