Skip to content

Make outline/border color of input fields configurable with a SCSS variable #17878

Discussion options

You must be logged in to vote

It's hardcoded

&--outlined
.q-field__control
border-radius: $generic-border-radius
padding: 0 12px
&:before
border: 1px solid rgba(0,0,0,.24)

So, you will have to use CSS to override it. Example:

.my-input.q-field--outlined .q-field__control:before {
  border-color: var(--q-accent); /* use the accent color instead of that grey */
}
/* q-input class="my-input" outlined */

This was for the outlined design. You can adjust it to other designs as needed.

I am changing this to a feature request so that it can be configured through a variable in the future.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ivanjaros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants