Skip to content

Commit

Permalink
Separator changes for #5639
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Dec 25, 2023
1 parent 9753435 commit 028c35c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/lib/contextmenu/ContextMenuBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const classes = {
icon: 'p-menuitem-icon',
submenuIcon: 'p-submenu-icon',
label: 'p-menuitem-text',
separator: 'p-menu-separator',
separator: 'p-menuitem-separator',
transition: 'p-contextmenu',
submenuTransition: 'p-contextmenusub'
};
Expand Down
2 changes: 1 addition & 1 deletion components/lib/megamenu/MegaMenuBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const classes = {
'p-megamenu-mobile-active': mobileActiveState
}),
content: 'p-menuitem-content',
separator: 'p-menu-separator',
separator: 'p-menuitem-separator',
submenuIcon: 'p-submenu-icon',
action: ({ item }) => classNames('p-menuitem-link', { 'p-disabled': item.disabled }),
submenuItem: ({ focused, disabled, active }) =>
Expand Down
2 changes: 1 addition & 1 deletion components/lib/menubar/MenubarBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const classes = {
classNames('p-menubar p-component', {
'p-menubar-mobile-active': mobileActiveState
}),
separator: 'p-menu-separator',
separator: 'p-menuitem-separator',
icon: 'p-menuitem-icon',
label: 'p-menuitem-text',
submenuIcon: 'p-submenu-icon',
Expand Down
2 changes: 1 addition & 1 deletion components/lib/panelmenu/PanelMenuBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const classes = {
headerContent: 'p-panelmenu-header-content',
menuContent: 'p-panelmenu-content',
root: ({ props }) => classNames('p-panelmenu p-component', props.className),
separator: 'p-menu-separator',
separator: 'p-menuitem-separator',
toggleableContent: ({ active }) =>
classNames('p-toggleable-content', {
'p-toggleable-content-collapsed': !active
Expand Down
2 changes: 1 addition & 1 deletion components/lib/panelmenu/PanelMenuSub.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export const PanelMenuSub = React.memo(
};

const createItem = (item, index) => {
return item.separator ? createSeparator(index) : createMenuItem(item, index);
return getItemProp(item, 'separator') ? createSeparator(index) : createMenuItem(item, index);
};

const createMenu = () => {
Expand Down
2 changes: 1 addition & 1 deletion components/lib/tieredmenu/TieredMenuBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const classes = {
},
props.className
),
separator: 'p-menu-separator',
separator: 'p-menuitem-separator',
icon: ({ _icon }) => classNames('p-menuitem-icon', _icon),
content: 'p-menuitem-content',
label: 'p-menuitem-text',
Expand Down

0 comments on commit 028c35c

Please sign in to comment.