Closed thure closed 2 years ago
It appears to work with :before
but not &:before
.
Both produce the same result, but only the first one appears properly typed.
This was fixed in Griffel itself, https://github.com/microsoft/griffel/issues/49. I will work on PR to bump Griffel in Fluent UI.
Environment Information
Please provide a reproduction of the bug in a codepen:
Actual behavior:
In a makeStyles call like this:
TypeScript errors on
&:before
with:Even though Griffel identifies the type of
zIndex
asThe error is not present when applied directly to
root
.Expected behavior:
An acceptable
zIndex
value should not cause TypeScript issues, even on pseudo-elements.Priorities and help requested:
Are you willing to submit a PR to fix? (Yes, No)
Requested priority: (Blocking, High, Normal, Low)
Products/sites affected: Fluent Blocks (https://github.com/OfficeDev/fluent-blocks)