fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

merge-styles put expanded rules in selector into parent scope

Open stephenzsy opened this issue 9 years ago • 0 comments

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;}

If applicable, please provide a codepen repro:

stephenzsy avatar Oct 31 '17 23:10 stephenzsy