Skip to content

List Item caption color doesn't follow container color #18150

@adam-iris

Description

@adam-iris

What happened?

A q-item-label with caption attribute use a fixed text color, which may not match the text color of other parts of the q-item.

What did you expect to happen?

The caption element uses the same (or similar) text color as other elements of the item.

Reproduction URL

https://codepen.io/adam-earthscope/pen/pvgWpLe

How to reproduce?

  1. Go to the provided reproduction link
  2. There are two list items, one of which is active and styled using active-class
  3. The caption on the active item is dark on a dark background, despite the item using text-white to use light text elsewhere

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Chrome

Quasar info output

Relevant log output

Additional context

I believe there's a similar issue with the side label in dark mode, visible in the docs at:
https://quasar.dev/vue-components/list-and-list-items#active-state
(the bottom item)

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