From a14054e7e5311ab2e724c68e0abca94a0a041a46 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 9 Apr 2024 16:43:12 +0300 Subject: [PATCH] Rename class --- .../lib/contextmenu/style/ContextMenuStyle.js | 2 +- components/lib/menubar/style/MenubarStyle.js | 2 +- .../themes/primeone/base/contextmenu/index.js | 4 ++-- .../lib/themes/primeone/base/menubar/index.js | 20 +++++++++---------- .../themes/primeone/base/tieredmenu/index.js | 4 ++-- .../lib/tieredmenu/style/TieredMenuStyle.js | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/components/lib/contextmenu/style/ContextMenuStyle.js b/components/lib/contextmenu/style/ContextMenuStyle.js index 1d396a1b3..a53133191 100644 --- a/components/lib/contextmenu/style/ContextMenuStyle.js +++ b/components/lib/contextmenu/style/ContextMenuStyle.js @@ -21,7 +21,7 @@ const classes = { icon: 'p-contextmenu-item-icon', label: 'p-contextmenu-item-label', submenuIcon: 'p-contextmenu-submenu-icon', - submenu: 'p-contextmenu-submenu-list', + submenu: 'p-contextmenu-submenu', separator: 'p-contextmenu-separator' }; diff --git a/components/lib/menubar/style/MenubarStyle.js b/components/lib/menubar/style/MenubarStyle.js index d62423f3d..ddd690af3 100644 --- a/components/lib/menubar/style/MenubarStyle.js +++ b/components/lib/menubar/style/MenubarStyle.js @@ -28,7 +28,7 @@ const classes = { icon: 'p-menubar-item-icon', label: 'p-menubar-item-label', submenuIcon: 'p-menubar-submenu-icon', - submenu: 'p-menubar-submenu-list', + submenu: 'p-menubar-submenu', separator: 'p-menubar-separator', end: 'p-menubar-end' }; diff --git a/components/lib/themes/primeone/base/contextmenu/index.js b/components/lib/themes/primeone/base/contextmenu/index.js index 6230ccd85..1cc9e557d 100644 --- a/components/lib/themes/primeone/base/contextmenu/index.js +++ b/components/lib/themes/primeone/base/contextmenu/index.js @@ -11,14 +11,14 @@ export default { } .p-contextmenu-root-list, -.p-contextmenu-submenu-list { +.p-contextmenu-submenu { margin: 0; padding: 0; list-style: none; outline: 0 none; } -.p-contextmenu-submenu-list { +.p-contextmenu-submenu { position: absolute; min-width: 100%; z-index: 1; diff --git a/components/lib/themes/primeone/base/menubar/index.js b/components/lib/themes/primeone/base/menubar/index.js index 52f284ec6..43a97be0a 100644 --- a/components/lib/themes/primeone/base/menubar/index.js +++ b/components/lib/themes/primeone/base/menubar/index.js @@ -11,7 +11,7 @@ export default { } .p-menubar-root-list, -.p-menubar-submenu-list { +.p-menubar-submenu { margin: 0; padding: 0; list-style: none; @@ -24,7 +24,7 @@ export default { flex-wrap: wrap; } -.p-menubar-root-list > .p-menubar-item-active > .p-menubar-submenu-list { +.p-menubar-root-list > .p-menubar-item-active > .p-menubar-submenu { display: block; } @@ -97,7 +97,7 @@ export default { margin-left: 0.5rem; } -.p-menubar-submenu-list { +.p-menubar-submenu { display: none; position: absolute; min-width: 12.5rem; @@ -110,25 +110,25 @@ export default { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); } -.p-menubar-submenu-list .p-menubar-separator { +.p-menubar-submenu .p-menubar-separator { border-top: 1px solid ${dt('menubar.separator.border.color')}; margin: 2px 0; } -.p-menubar-submenu-list .p-menubar-item { +.p-menubar-submenu .p-menubar-item { position: relative; margin: 2px 0; } -.p-menubar-submenu-list .p-menubar-item:first-child { +.p-menubar-submenu .p-menubar-item:first-child { margin-top: 0; } -.p-menubar-submenu-list .p-menubar-item:last-child { +.p-menubar-submenu .p-menubar-item:last-child { margin-bottom: 0; } - .p-menubar-submenu-list > .p-menubar-item-active > .p-menubar-submenu-list { + .p-menubar-submenu > .p-menubar-item-active > .p-menubar-submenu { display: block; left: 100%; top: 0; @@ -223,7 +223,7 @@ export default { transform: rotate(-180deg); } -.p-menubar-mobile .p-menubar-submenu-list .p-menubar-submenu-icon { +.p-menubar-mobile .p-menubar-submenu .p-menubar-submenu-icon { transition: transform 0.2s; transform: rotate(90deg); } @@ -232,7 +232,7 @@ export default { transform: rotate(-90deg); } -.p-menubar-mobile .p-menubar-submenu-list { +.p-menubar-mobile .p-menubar-submenu { width: 100%; position: static; box-shadow: none; diff --git a/components/lib/themes/primeone/base/tieredmenu/index.js b/components/lib/themes/primeone/base/tieredmenu/index.js index cda989cca..837e78951 100644 --- a/components/lib/themes/primeone/base/tieredmenu/index.js +++ b/components/lib/themes/primeone/base/tieredmenu/index.js @@ -10,14 +10,14 @@ export default { } .p-tieredmenu-root-list, -.p-tieredmenu-submenu-list { +.p-tieredmenu-submenu { margin: 0; padding: 0; list-style: none; outline: 0 none; } -.p-tieredmenu-submenu-list { +.p-tieredmenu-submenu { position: absolute; min-width: 100%; z-index: 1; diff --git a/components/lib/tieredmenu/style/TieredMenuStyle.js b/components/lib/tieredmenu/style/TieredMenuStyle.js index a749ad61b..0c4521a2c 100644 --- a/components/lib/tieredmenu/style/TieredMenuStyle.js +++ b/components/lib/tieredmenu/style/TieredMenuStyle.js @@ -27,7 +27,7 @@ const classes = { icon: 'p-tieredmenu-item-icon', text: 'p-tieredmenu-item-label', submenuIcon: 'p-tieredmenu-submenu-icon', - submenu: 'p-tieredmenu-submenu-list', + submenu: 'p-tieredmenu-submenu', separator: 'p-tieredmenu-separator', end: 'p-tieredmenu-end' };