Skip to content

Commit f29db83

Browse files
committed
Fix styles for nested submenus
1 parent 1a52e72 commit f29db83

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/main/resources/META-INF/resources/frontend/bower_components/fc-applayout/fc-menuitem.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<style>
1010
:host {
1111
cursor: pointer;
12+
display: block;
1213
--paper-item-disabled-color: var(--lumo-disabled-text-color);
1314
}
1415
:host(:not([has-icon])) {
@@ -20,6 +21,9 @@
2021
:host paper-icon-item {
2122
width: 100%;
2223
}
24+
:host iron-collapse-button {
25+
background: inherit;
26+
}
2327
</style>
2428

2529
<iron-collapse-button id="iron" no-icons="true">

src/main/resources/META-INF/resources/frontend/styles/applayout-styles.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,10 @@
5353
scroll-snap-stop: always;
5454
display: block;
5555
}
56+
57+
fc-menuitem fc-menuitem {
58+
background-color: var(--lumo-primary-color-10pct);
59+
}
5660
</style>
5761
</custom-style>
5862

59-
<dom-module id="fc-submenu-theme" theme-for="fc-submenu">
60-
<template>
61-
<style>
62-
:host [slot='collapse-content'] {
63-
background-color: var(--lumo-primary-color-10pct);
64-
}
65-
</style>
66-
</template>
67-
</dom-module>

0 commit comments

Comments
 (0)