Skip to content

Add icons to panel navigation - #779

Merged
giuscris merged 1 commit into
2.xfrom
feature/panel-navigation-icons
Nov 15, 2025
Merged

Add icons to panel navigation#779
giuscris merged 1 commit into
2.xfrom
feature/panel-navigation-icons

Conversation

@giuscris

@giuscris giuscris commented Nov 9, 2025

Copy link
Copy Markdown
Member

This pull request introduces icon support for navigation items in the panel, enhancing both the configuration and visual presentation of the sidebar and headers. Navigation items can now specify an icon, which is rendered in the sidebar and in the headers of key views. Minor style adjustments are also included to improve icon alignment.

Navigation icon support and rendering:

  • Added an icon property to navigation items in panel/config/navigation.php, specifying icons for each main navigation section.
  • Updated the NavigationItem class to provide an icon() method for retrieving the icon value.
  • Modified the sidebar partial (panel/views/partials/sidebar.php) to render the icon for each navigation item if present.

Header icon enhancements:

  • Added icon rendering in the headers of dashboard, pages, files, statistics, users, options, and tools views by inserting a header-icon div with the relevant icon. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Styling adjustments:

  • Adjusted sidebar navigation item padding and added margin to icons for better alignment in _sidebar.scss. [1] [2]

@giuscris giuscris added this to the 2.2.0 milestone Nov 9, 2025
@giuscris giuscris self-assigned this Nov 9, 2025
@giuscris giuscris added the enhancement New feature or request label Nov 9, 2025
@giuscris
giuscris force-pushed the feature/panel-navigation-icons branch from 2ffb281 to 65d9694 Compare November 9, 2025 01:16
@giuscris
giuscris force-pushed the feature/panel-navigation-icons branch from 65d9694 to 20bd37e Compare November 15, 2025 10:02
@giuscris
giuscris merged commit 4e3d539 into 2.x Nov 15, 2025
2 checks passed
@giuscris
giuscris deleted the feature/panel-navigation-icons branch November 15, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant