diff --git a/.changeset/checkbox-switch-single-label-node.md b/.changeset/checkbox-switch-single-label-node.md new file mode 100644 index 0000000000..ea071b2b7a --- /dev/null +++ b/.changeset/checkbox-switch-single-label-node.md @@ -0,0 +1,13 @@ +--- +'@toptal/picasso-form-label': minor +'@toptal/picasso-checkbox': minor +'@toptal/picasso-switch': minor +--- + +### Checkbox, Switch + +- expose a single label-associated node when a `label` is provided, so `getByLabelText`, `getByText` and `getByRole` match once. The base-ui control renders an accessible `role` element plus a hidden native ``; both used to be label-associated (the `role` element via `aria-labelledby`, the input via the wrapping `