Skip to content

Commit 05d71e5

Browse files
authored
fix(material/menu): fix divider color property (#31815)
The material/divider component sets its color using the `border-top-color` but the material/menu component attempts to override this by setting the `color` property which causes any overrides to not get applied.
1 parent 82cd076 commit 05d71e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/menu/menu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ mat-menu {
100100

101101
.mat-divider {
102102
// Use margin instead of padding since divider uses border-top to render out the line.
103-
color: token-utils.slot(menu-divider-color, $fallbacks);
103+
border-top-color: token-utils.slot(menu-divider-color, $fallbacks);
104104
margin-bottom: token-utils.slot(menu-divider-bottom-spacing, $fallbacks);
105105
margin-top: token-utils.slot(menu-divider-top-spacing, $fallbacks);
106106
}

0 commit comments

Comments
 (0)