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

globalCss can throw when given multiple styles #794

Closed
jonathantneal opened this issue Sep 17, 2021 · 1 comment · Fixed by #793
Closed

globalCss can throw when given multiple styles #794

jonathantneal opened this issue Sep 17, 2021 · 1 comment · Fixed by #793

Comments

@jonathantneal
Copy link
Contributor

Bug report

The globalCss function can throw when given multiple style arguments.

import * as Stitches from '@stitches/react'

const { globalCss } = Stitches.createStitches({})

export const globalStyles = globalCss(
	{
		body: {
			margin: 0,
		},
	},
	{
		"*": {
			margin: 0,
			padding: 0,
		},
	}
)

To Reproduce

See reproduction.

Expected behavior

The styles should not throw.

System information

  • OS: macOS
  • Version of Stitches: 1.1.0
  • Version of Node.js: 16
@csantos-nydig
Copy link

csantos-nydig commented Oct 12, 2021

This is still not working I believe :( #842

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 a pull request may close this issue.

2 participants