Base Control Component is missing a logical case for labels #18166
Labels
[Feature] UI Components
Impacts or related to the UI component system
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
Needs Dev
Ready for, and needs developer efforts
[Package] Components
/packages/components
[Priority] Low
Used to indicate that the issue at hand isn't a top priority to address and can be handled later
Describe the bug
The base control component at
hideLabelFromVision` properties.
packages/components/src/base-control
accepts anid
andThe first case of an
id
being passed is complete, it should use alabel
tag andhtmlFor
property and then use the VisuallyHidden or shown label.The missing case is when
id
is not passed andhideLabelFromVision
is passed in the label will still be visually displayed, which is not expected.This probably should depend on #18165 getting merged first.
To reproduce
I didn't find any code specifying parameters as such, but for completeness it should be fixed up.
The text was updated successfully, but these errors were encountered: