Skip to content

Commit 1747677

Browse files
author
Valentin Mayer
committed
fix: styles of context menu item content
when no icons or only select icons are used the item name was diplayed with 1rem icon width
1 parent 46cb2e6 commit 1747677

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/context-menu/context-menu-item.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ import { ItemClickEvent } from "./context-menu.types";
3333
`,
3434
styles: [`
3535
:host {
36-
grid-template-columns: 1rem 1fr max-content;
36+
grid-template-columns: 1fr max-content;
37+
38+
&[icon], &[type="checkbox"], &[type="radio"] {
39+
grid-template-columns: 1rem 1fr max-content;
40+
}
3741
}
3842
`]
3943
})

0 commit comments

Comments
 (0)