Skip to content

Conversation

AlanFnz
Copy link
Member

@AlanFnz AlanFnz commented Aug 5, 2025

What

Removed the CSS :has() selector in the InnerWrapper component that was incorrectly applying padding even when labels were visually hidden, and the label is required anyways.

Why

The :has() selector was detecting the Label component even when they were wrapped in VisuallyHidden, causing padding to be applied incorrectly. This resulted in unwanted space at the top of components with hidden labels.

We now rely solely on the prop-based conditional styling ($hideLabel), which provides more predictable and consistent behavior across all browsers.

Copy link

pkg-pr-new bot commented Aug 5, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@freenow/wave@553

commit: b9f6ec6

@AlanFnz AlanFnz merged commit 1ca4f8c into freenowtech:main Aug 5, 2025
7 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 5, 2025
### [2.41.2](v2.41.1...v2.41.2) (2025-08-05)

### Bug Fixes

* remove unreliable :has() selector in InnerWrapper ([#553](#553)) ([1ca4f8c](1ca4f8c))
Copy link
Contributor

github-actions bot commented Aug 5, 2025

🎉 This PR is included in version 2.41.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants