Unique CSS vars with makeStyles #17923
Labels
Fluent UI react (v8)
Issues about @fluentui/react (v8)
Needs: Investigation
The Shield Dev should investigate this issue and propose a fix
Resolution: Soft Close
Soft closing inactive issues over a certain period
Projects
Describe the feature that you would like added
For the Flex component, CSS vars are key into having a performant solution. However, I there is currently no way of guaranteeing the uniqueness of these variables with makeStyles, leaving it open to collision with user defined variables or even when using a Flex inside of a Flex.
Being able to use a custom CSS prop and having makeStyles guarantee the uniqueness of these props would be ideal.
Proposed usage:
Result
What component or utility would this be added to
makeStyles
Have you discussed this feature with our team, and if so, who
@layershifter
Additional context/screenshots
If we opt for a solution that generates an unique ID we need also to consider how to make sure server and client generate the same ID in SSR scenarios.
The text was updated successfully, but these errors were encountered: