Skip to content

EP-6633: Fix broken css caused by redundant layer declarations#882

Merged
Patrick DeVries (PatrickDeVries) merged 2 commits intomainfrom
bug/EP-6633_fix-broken-css
Jul 24, 2025
Merged

EP-6633: Fix broken css caused by redundant layer declarations#882
Patrick DeVries (PatrickDeVries) merged 2 commits intomainfrom
bug/EP-6633_fix-broken-css

Conversation

@PatrickDeVries
Copy link
Contributor

The List and Tabs both redeclare the CSS Layers for some reason, although this is already done in globals.scss. For whatever reason the redundant declaration was resulting in the build CSS for List including the layer tag at the end with no semicolon. This produced no issues for the List itself, but when the Select used that CSS block the missing semicolon broke the CSS following it:

image

Resulting in broken select items:
image

Removing the redundant layer fixes the built CSS

Copilot AI review requested due to automatic review settings July 24, 2025 16:26
@changeset-bot
Copy link

changeset-bot bot commented Jul 24, 2025

🦋 Changeset detected

Latest commit: c591701

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@igloo-ui/list Patch
@igloo-ui/tabs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Jul 24, 2025

Deploy Preview for igloo-ui ready!

Name Link
🔨 Latest commit c591701
🔍 Latest deploy log https://app.netlify.com/projects/igloo-ui/deploys/68825ea9e58ebb000855156b
😎 Deploy Preview https://deploy-preview-882--igloo-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a CSS build issue caused by redundant @layer declarations in the List and Tabs components that were already defined in globals.scss. The redundant declarations were causing malformed CSS output (missing semicolons) that broke styling in dependent components like Select.

  • Removed duplicate @layer hopper-design-system, hopper-icons, igloo; declarations from List and Tabs SCSS files
  • Added changeset documentation for the patch releases
  • Fixed CSS compilation issues that were causing broken styling in Select component

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/Tabs/src/tabs.scss Removed redundant CSS layer declaration
packages/List/src/list.scss Removed redundant CSS layer declaration
.changeset/itchy-frogs-push.md Added changeset entry documenting the patch fix

@PatrickDeVries Patrick DeVries (PatrickDeVries) merged commit 6e3453c into main Jul 24, 2025
12 checks passed
@PatrickDeVries Patrick DeVries (PatrickDeVries) deleted the bug/EP-6633_fix-broken-css branch July 24, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants