From bd9c8d91f62ad74368995f9a74ac58eb93875a66 Mon Sep 17 00:00:00 2001 From: Siddu Hamigi Date: Thu, 20 Nov 2025 15:52:01 +0530 Subject: [PATCH] fix(QItem): caption and overline colors now inherit from container (#18150) Changed q-item__label--caption and --overline to use currentColor with opacity instead of fixed rgba colors. This allows caption and overline text to properly inherit the text color from their parent container (e.g., when using active-class="text-white" or other color utilities). Fixes #18150 --- ui/src/components/item/QItem.sass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/src/components/item/QItem.sass b/ui/src/components/item/QItem.sass index 5da0d62ad9f..391e937e95b 100644 --- a/ui/src/components/item/QItem.sass +++ b/ui/src/components/item/QItem.sass @@ -44,10 +44,12 @@ max-width: 100% &--overline - color: rgba(0,0,0,.7) + color: currentColor + opacity: .7 &--caption - color: rgba(0,0,0,.54) + color: currentColor + opacity: .54 &--header color: $grey-7 @@ -110,7 +112,7 @@ &--header color: rgba(255,255,255,.64) &--overline, &--caption - color: rgba(255,255,255,.8) + opacity: .8 .q-item position: relative