@progressive-development/pd-page 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/PdMenu.js +9 -6
package/package.json
CHANGED
package/src/PdMenu.js
CHANGED
|
@@ -117,15 +117,18 @@ export class PdMenu extends LitElement {
|
|
|
117
117
|
--pd-icon-stroke-col: var(--pd-default-bg-col);
|
|
118
118
|
--pd-icon-col: var(--pd-default-dark-col);
|
|
119
119
|
pointer-events: none;
|
|
120
|
-
}
|
|
120
|
+
}
|
|
121
121
|
|
|
122
122
|
/* An anderer Stelle teils das Image von außen gestylt, das macht es wahrschweinlich
|
|
123
|
-
einfacher als hier einzeln zu stylen. noch zu prüfen
|
|
123
|
+
einfacher als hier einzeln zu stylen. noch zu prüfen
|
|
124
|
+
*/
|
|
124
125
|
::slotted(.logo) {
|
|
125
126
|
max-width: var(--pd-menu-logo-maxwidth, 8rem);
|
|
126
127
|
width: 100%;
|
|
127
|
-
padding: var(--pd-menu-logo-padding, 2em);
|
|
128
|
+
padding: var(--pd-menu-logo-padding, 2em);
|
|
129
|
+
fill: var(--pd-menu-logo-color, #067394);
|
|
128
130
|
}
|
|
131
|
+
|
|
129
132
|
|
|
130
133
|
/**
|
|
131
134
|
* Style for drop down menu on small screens.
|
|
@@ -243,9 +246,9 @@ export class PdMenu extends LitElement {
|
|
|
243
246
|
}
|
|
244
247
|
});
|
|
245
248
|
|
|
246
|
-
return html`
|
|
247
|
-
<div class="menu-container">
|
|
248
|
-
<slot
|
|
249
|
+
return html`
|
|
250
|
+
<div class="menu-container">
|
|
251
|
+
<slot @click="${PdMenu._scrollToTop}" name="slotLogo"></slot>
|
|
249
252
|
<ul>
|
|
250
253
|
${this._renderItems(this._smallScreen ? [...this.menuItems, ...this.topMenuItems] : this.menuItems, true, this._smallScreen)}
|
|
251
254
|
</ul>
|