Skip to content

A custom value of standout property does not affect text color inside input field of q-input component #16019

Description

@kovrik4spa

What happened?

Hello,

If you specify a style that changes the color of the text in the standout property of the q-input component, then it does not work for changing the color of the text inside the input field, as well as prepend/append icons. Only label text color changes when input focused.

When focusing, the color of text and icons becomes white on a light theme, and black on a dark theme.

See this example:
https://codepen.io/kovrik4spa/pen/vYQxxjd?editors=1011

As you can see in the standout property, I specified the style text-red

<q-input clearable standout="bg-teal text-red" v-model="text" label="Custom standout" dense style="width: 300px">

When you start changing the text, the background will turn teal color, the label will turn red, but the color of the text in the input box and icons will be white or black, depending on the theme.

image
image

What did you expect to happen?

I expected that the colors of the text in the input field and icons would turn red

Reproduction URL

https://codepen.io/kovrik4spa/pen/vYQxxjd?editors=1011

How to reproduce?

  1. Go to the provided reproduction link
  2. Choose theme
  3. Click on text field to focus and standout styles applied

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

Components (quasar), Style & Identity (quasar)

Platforms/Browsers

Chrome

Quasar info output

No response

Relevant log output

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions