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

Remove theme(inline) option from CSS API #14894

Closed
wants to merge 5 commits into from

Conversation

RobinMalfait
Copy link
Member

This PR removes the theme(inline) option for now. We might re-introduce this in the future but for now we get rid of it to ensure there are fewer knobs to turn.

We still have the inline option internally because it is used in the v3 compat layer.

This will only remove it from the CSS API, but we will keep it
internally.
These tests ensured that `theme(inline)` worked, either on its own or in
combination with other `theme(…)` options. Since `inline` is being
removed, we can get rid of these tests as well.
In this case, we already generated the `var(--default-…)` even with
`@theme inline` because we just deleted the `inline` option. This
updates the input CSS and the corresponding snapshot.
Noticed that this part was not used while editing tests, so got rid of
it. #boyscoutrule
@RobinMalfait RobinMalfait requested a review from a team as a code owner November 6, 2024 11:56
@RobinMalfait
Copy link
Member Author

We were a bit too fast on this one. As the original PR points out: #14095

This is a needed feature in some cases.

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