Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

staticCss for container queries and nested _groupHover #3108

Open
omeroy opened this issue Jan 23, 2025 · 0 comments
Open

staticCss for container queries and nested _groupHover #3108

omeroy opened this issue Jan 23, 2025 · 0 comments

Comments

@omeroy
Copy link

omeroy commented Jan 23, 2025

Subject

staticCss configuration for container queries

Description

I'd like to generate style rules for pseudo classes nested into container queries.
E.g:

@pb/lg _groupHover {
    opacity: 1
}

How to do that? The configuration below works only for 1 layer, but not for a nested combination of the layers.

    staticCss: {
        css: [
            {
                /*****************************
                 * Responsive & Pseudo Classes
                 *****************************/

                responsive: false,
                conditions: [
                    '@pb/sm',
                    '@pb/md',
                    '@pb/lg',
                    '_groupHover',
                    '_hover',
                    '_focus',
                    '_active',
                    '_disabled',
                ],
                properties: {
                    opacity: ['0', '0.2', '0.4', '0.6', '0.8', '1'],
                },
            },
    }
@omeroy omeroy changed the title staticCss for container queries staticCss for container queries and nested _groupHover Jan 23, 2025
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

No branches or pull requests

1 participant