diff --git a/apps/showcase/doc/menubar/RouterDoc.vue b/apps/showcase/doc/menubar/RouterDoc.vue
index 80254b621..e3eef633e 100644
--- a/apps/showcase/doc/menubar/RouterDoc.vue
+++ b/apps/showcase/doc/menubar/RouterDoc.vue
@@ -8,13 +8,13 @@
- {{ item.label }}
+ {{ item.label }}
- {{ item.label }}
-
+ {{ item.label }}
+
@@ -70,13 +70,13 @@ export default {
- {{ item.label }}
+ {{ item.label }}
- {{ item.label }}
-
+ {{ item.label }}
+
@@ -89,13 +89,13 @@ export default {
- {{ item.label }}
+ {{ item.label }}
- {{ item.label }}
-
+ {{ item.label }}
+
@@ -156,13 +156,13 @@ export default {
- {{ item.label }}
+ {{ item.label }}
- {{ item.label }}
-
+ {{ item.label }}
+
diff --git a/apps/showcase/doc/menubar/TemplateDoc.vue b/apps/showcase/doc/menubar/TemplateDoc.vue
index 70c931299..a1e674401 100644
--- a/apps/showcase/doc/menubar/TemplateDoc.vue
+++ b/apps/showcase/doc/menubar/TemplateDoc.vue
@@ -20,16 +20,15 @@
-
- {{ item.label }}
+ {{ item.label }}
{{ item.shortcut }}
-
+
@@ -47,13 +46,10 @@ export default {
label: 'Home',
icon: 'pi pi-home'
},
- {
- label: 'Features',
- icon: 'pi pi-star'
- },
{
label: 'Projects',
icon: 'pi pi-search',
+ badge: 3,
items: [
{
label: 'Core',
@@ -65,36 +61,15 @@ export default {
icon: 'pi pi-server',
shortcut: '⌘+B'
},
- {
- label: 'UI Kit',
- icon: 'pi pi-pencil',
- shortcut: '⌘+U'
- },
{
separator: true
},
{
- label: 'Templates',
- icon: 'pi pi-palette',
- items: [
- {
- label: 'Apollo',
- icon: 'pi pi-palette',
- badge: 2
- },
- {
- label: 'Ultima',
- icon: 'pi pi-palette',
- badge: 3
- }
- ]
+ label: 'UI Kit',
+ icon: 'pi pi-pencil',
+ shortcut: '⌘+U'
}
]
- },
- {
- label: 'Contact',
- icon: 'pi pi-envelope',
- badge: 3
}
],
code: {
@@ -108,11 +83,10 @@ export default {
-
- {{ item.label }}
+ {{ item.label }}
{{ item.shortcut }}
-
+
@@ -141,11 +115,10 @@ export default {
-
- {{ item.label }}
+ {{ item.label }}
{{ item.shortcut }}
-
+
@@ -167,13 +140,10 @@ export default {
label: 'Home',
icon: 'pi pi-home'
},
- {
- label: 'Features',
- icon: 'pi pi-star'
- },
{
label: 'Projects',
icon: 'pi pi-search',
+ badge: 3,
items: [
{
label: 'Core',
@@ -185,36 +155,15 @@ export default {
icon: 'pi pi-server',
shortcut: '⌘+B'
},
- {
- label: 'UI Kit',
- icon: 'pi pi-pencil',
- shortcut: '⌘+U'
- },
{
separator: true
},
{
- label: 'Templates',
- icon: 'pi pi-palette',
- items: [
- {
- label: 'Apollo',
- icon: 'pi pi-palette',
- badge: 2
- },
- {
- label: 'Ultima',
- icon: 'pi pi-palette',
- badge: 3
- }
- ]
+ label: 'UI Kit',
+ icon: 'pi pi-pencil',
+ shortcut: '⌘+U'
}
]
- },
- {
- label: 'Contact',
- icon: 'pi pi-envelope',
- badge: 3
}
]
};
@@ -240,11 +189,10 @@ export default {
-
- {{ item.label }}
+ {{ item.label }}
{{ item.shortcut }}
-
+
@@ -265,13 +213,10 @@ const items = ref([
label: 'Home',
icon: 'pi pi-home'
},
- {
- label: 'Features',
- icon: 'pi pi-star'
- },
{
label: 'Projects',
icon: 'pi pi-search',
+ badge: 3,
items: [
{
label: 'Core',
@@ -283,36 +228,15 @@ const items = ref([
icon: 'pi pi-server',
shortcut: '⌘+B'
},
- {
- label: 'UI Kit',
- icon: 'pi pi-pencil',
- shortcut: '⌘+U'
- },
{
separator: true
},
{
- label: 'Templates',
- icon: 'pi pi-palette',
- items: [
- {
- label: 'Apollo',
- icon: 'pi pi-palette',
- badge: 2
- },
- {
- label: 'Ultima',
- icon: 'pi pi-palette',
- badge: 3
- }
- ]
+ label: 'UI Kit',
+ icon: 'pi pi-pencil',
+ shortcut: '⌘+U'
}
]
- },
- {
- label: 'Contact',
- icon: 'pi pi-envelope',
- badge: 3
}
]);
<\/script>
diff --git a/packages/primevue/src/menubar/style/MenubarStyle.js b/packages/primevue/src/menubar/style/MenubarStyle.js
index ac7d6dc6e..454bfd45b 100644
--- a/packages/primevue/src/menubar/style/MenubarStyle.js
+++ b/packages/primevue/src/menubar/style/MenubarStyle.js
@@ -123,7 +123,7 @@ const theme = ({ dt }) => `
z-index: 1;
background: ${dt('menubar.submenu.background')};
border: 1px solid ${dt('menubar.submenu.border.color')};
- border-radius: ${dt('menubar.border.radius')};
+ border-radius: ${dt('menubar.submenu.border.radius')};
box-shadow: ${dt('menubar.submenu.shadow')};
color: ${dt('menubar.submenu.color')};
flex-direction: column;
@@ -189,14 +189,16 @@ const theme = ({ dt }) => `
position: absolute;
display: none;
width: 100%;
+ flex-direction: column;
+ top: 100%;
+ left: 0;
+ z-index: 1;
padding: ${dt('menubar.submenu.padding')};
background: ${dt('menubar.submenu.background')};
border: 1px solid ${dt('menubar.submenu.border.color')};
box-shadow: ${dt('menubar.submenu.shadow')};
-}
-
-.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content {
- border-radius: ${dt('menubar.item.border.radius')};
+ border-radius: ${dt('menubar.submenu.border.radius')};
+ gap: ${dt('menubar.submenu.gap')};
}
.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content > .p-menubar-item-link {
@@ -205,10 +207,6 @@ const theme = ({ dt }) => `
.p-menubar-mobile-active .p-menubar-root-list {
display: flex;
- flex-direction: column;
- top: 100%;
- left: 0;
- z-index: 1;
}
.p-menubar-mobile .p-menubar-root-list .p-menubar-item {
@@ -244,6 +242,7 @@ const theme = ({ dt }) => `
box-shadow: none;
border: 0 none;
padding-left: ${dt('menubar.submenu.mobile.indent')};
+ padding-right: 0;
}
`;