fluentui
fluentui copied to clipboard
merge-styles put expanded rules in selector into parent scope
Bug Report
- Package version(s): 5.9.0
- Browser and OS versions: (fill this out if relevant)
Priorities and help requested (not applicable if asking question):
Are you willing to submit a PR to fix? Yes
Requested priority: High
Products/sites affected: (if applicable)
Describe the issue:
const marginTopStyle = mergeStyles({marginLeft: "10px"});
mergeStyles({
selectors: {
"& > * + *": marginTopStyle,
},
})
will generate into CSS rule:
css-xx{margin-left:10px;}
Actual behavior:
The merge styles generates
css-xx{margin-left:10px;}
Expected behavior:
The merge styles should generate
css-xx > * + *{margin-left:10px;}