Skip to content

Commit

Permalink
Merge pull request #82 from iamibrahimriaz/master
Browse files Browse the repository at this point in the history
Sidebar Icon Hover on WP Dashboard - Updated
  • Loading branch information
HeyMehedi authored Sep 16, 2024
2 parents 16477cb + af11991 commit 36e3e0a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Admin/Enqueuer.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ public function admin_submenu_css() {
-moz-osx-font-smoothing: grayscale !important;
box-sizing: content-box;
width: 100%
}
.toplevel_page_templatiq:hover > div.wp-menu-image:before{
background: url("' . esc_attr( TEMPLATIQ_ASSETS ) . '/svg/sidebar-icon-hover.svg' . '") no-repeat center center;
background-size: 20px 20px;
}
.current.toplevel_page_templatiq > div.wp-menu-image:before{
background: url("' . esc_attr( TEMPLATIQ_ASSETS ) . '/svg/sidebar-icon-active.svg' . '") no-repeat center center;
background-size: 20px 20px;
}</style>';
}
}
10 changes: 10 additions & 0 deletions src/svg/sidebar-icon-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/svg/sidebar-icon-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 36e3e0a

Please sign in to comment.