From 5d21ecef1cbe677e80622f8d344ad742162fc3f4 Mon Sep 17 00:00:00 2001 From: lindsaym-fa Date: Thu, 16 Oct 2025 18:51:25 -0400 Subject: [PATCH] allow required indicator to be targetable --- packages/webawesome/src/styles/component/form-control.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webawesome/src/styles/component/form-control.css b/packages/webawesome/src/styles/component/form-control.css index 21df8803e..f9e1efb77 100644 --- a/packages/webawesome/src/styles/component/form-control.css +++ b/packages/webawesome/src/styles/component/form-control.css @@ -5,14 +5,14 @@ /* Label */ :is([part~='form-control-label'], [part~='label']):has(*:not(:empty)) { - display: inline-block; + display: inline-flex; color: var(--wa-form-control-label-color); font-weight: var(--wa-form-control-label-font-weight); line-height: var(--wa-form-control-label-line-height); margin-block-end: 0.5em; } -:host([required]) slot:is([name='label'], [part='label'])::after { +:host([required]) :is([part~='form-control-label'], [part~='label'])::after { content: var(--wa-form-control-required-content); margin-inline-start: var(--wa-form-control-required-content-offset); color: var(--wa-form-control-required-content-color);