Skip to content

Resolves #557 - Use @container style as custom media query #558

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

AlessioCoser
Copy link

No description provided.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@AlessioCoser
Copy link
Author

@argyleink it is not ready yet, but i would like a feedback if i'm on the right track

@AlessioCoser AlessioCoser changed the title Resolves #447 - Use @container style as custom media query Resolves #557 - Use @container style as custom media query Jun 2, 2025
@AlessioCoser
Copy link
Author

#557

@AlessioCoser
Copy link
Author

AlessioCoser commented Jun 2, 2025

I kinda followed the animation file more or less, and generated accordingly the required @media.

@argyleink this should be a working version. Tell me if you see something wrong

@argyleink
Copy link
Owner

giving this a look now, thanks for the patience!

Copy link
Owner

@argyleink argyleink left a comment

Choose a reason for hiding this comment

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

found one minor syntax nit, no biggie

the last task afaict, is to include these new props in the JS object output too, for the css-in-js users. this just means opening up build/to-object.js and adding the container values to the lists.

then update tests: expected as this PR is adding a lot of new props. you can run the tests locally to see the new total, then update that value in the test, and then this PR should be good to go 👍🏻

@@ -2,6 +2,7 @@ import Animations from './props.animations.js'
import Sizes from './props.sizes.js'
import Colors from './props.colors.js'
import ColorsHSL from './props.colors-hsl.js'
import Container from "./props.container.js";
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
import Container from "./props.container.js";
import Container from './props.container.js'

match style of others

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.

2 participants