Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Invalid CSS syntax in latest builds #11784

@aaronadamsCA

Description

@aaronadamsCA

Summary

Since Polaris v12.22.0, our app builds fail due to invalid CSS syntax in this package.

This file: https://unpkg.com/@shopify/polaris@12.22.1/build/esm/styles.css

Contains this code:

@media (--p-breakpoints-md-up) and print{
    .Polaris-Frame--hasNav .Polaris-Frame__Main{
        padding-left:0;
    }
      }

Expected behavior

The media query should be something valid, like @media print and (min-width: 10px).

Actual behavior

The invalid media query breaks our CSS preprocessing (example).

Steps to reproduce

No response

Are you using React components?

None

Polaris version number

v12.22.1

Browser

No response

Device

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken and not working as intended in the system.untriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions