Skip to content

Commit

Permalink
removes duplicate styles for expand-collapse-glyph on tree item causi…
Browse files Browse the repository at this point in the history
…ng specificity and ordering issues (#18828)

* removes duplicate styles for expand-collapse-glyph on tree item causing specificity/ordering issues

* Change files
  • Loading branch information
chrisdholt authored Jul 6, 2021
1 parent 9babbdb commit a712d19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "removes duplicate styles for expand-collapse-glyph on tree item causing specificity/ordering issues",
"packageName": "@fluentui/web-components",
"email": "chhol@microsoft.com",
"dependentChangeType": "patch"
}
6 changes: 1 addition & 5 deletions packages/web-components/src/tree-item/tree-item.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ export const treeItemStyles: (context: ElementDefinitionContext, definition: Tre
width: 16px;
height: 16px;
transition: transform 0.1s linear;
transform: rotate(-45deg);
pointer-events: none;
fill: ${neutralForegroundRest};
}
.start,
.end {
display: flex;
Expand All @@ -202,10 +202,6 @@ export const treeItemStyles: (context: ElementDefinitionContext, definition: Tre
} margin-inline-start: calc(${designUnit} * 2px + 2px);
}
:host(.expanded) > .positioning-region .expand-collapse-glyph {
${/* transform needs to be localized */ ''} transform: rotate(0deg);
}
:host(.expanded) > .items {
display: block;
}
Expand Down

0 comments on commit a712d19

Please sign in to comment.