Skip to content

Commit 4f49851

Browse files
added inline style for submenu separators
1 parent fccd644 commit 4f49851

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

traits/admin-menu.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ trait zukit_AdminMenu {
1414
1515
public function admin_menu_config() {
1616
add_filter('custom_menu_order', [$this, 'admin_menu_modify']);
17+
$this->snippets('add_admin_style',
18+
'.wp-core-ui .wp-submenu .wp-menu-separator a',
19+
'border-top: 1px solid;
20+
opacity: 0.2;
21+
width: 100%;
22+
display: inline-block !important;
23+
pointer-events: none;
24+
cursor: default;'
25+
);
1726
}
1827

1928
// To modify menu and submenu - pass array with optional keys ['reorder', 'rename', 'remove', 'separator']

0 commit comments

Comments
 (0)