-
Notifications
You must be signed in to change notification settings - Fork 3k
feat: FIT-529: Convert main menu to an icon menu in LSO #8151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for heartex-docs canceled.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #8151 +/- ##
===========================================
- Coverage 70.49% 70.48% -0.02%
===========================================
Files 720 720
Lines 52128 52129 +1
Branches 8813 8813
===========================================
- Hits 36748 36743 -5
- Misses 15377 15383 +6
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This pull request introduces a new "icon menu" feature, controlled by the
fflag_feat_fit_528_icon_menu_short
feature flag. When enabled, the sidebar menu switches to a compact, icon-only style with tooltips and adjusted styling. The changes span backend templates, frontend React components, and SCSS styles to support this new mode.Feature flag integration and backend template changes:
fflag_feat_fit_528_icon_menu_short
inbase.html
,simple.html
, andindex.html
to conditionally add a CSS class to the<body>
element, enabling icon menu support. [1] [2] [3]FF_ICON_MENU
constant in the feature flags definitions.Sidebar and menu component updates:
Menubar
component to detect the icon menu flag and, when enabled, render menu items with tooltips, remove text labels, and adjust spacers/dividers for a more compact layout. [1] [2] [3]MenuItem
component to conditionally wrap items in a tooltip and display only the icon when in icon menu mode. [1] [2] [3] [4] [5]Styling and layout adjustments:
--icon-menu-width
CSS variable and adjusted the sidebar width and styling when icon menu mode is active, including menu item alignment, padding, and background. [1] [2] [3]