You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:16:27 UTC
Re: [D] HAMBURGER MENU ICONS [superset]
GitHub user dosubot[bot] edited a comment on the discussion: HAMBURGER MENU ICONS
<!-- Answer -->
Yes, this is doable — it's a common UI customization. Here are the key files you'd need to touch:
**Primary files to modify:**
1. **`superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx`** — This is the main file. It renders the kebab menu (three vertical dots via `Icons.EllipsisOutlined`) inside a `NoAnimationDropdown`, and defines all the menu items: Force Refresh, Fullscreen, Download, etc. [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx). You'd replace the dropdown with individual icon buttons and wire each to the existing action handlers already in `handleMenuClick` [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx#L185-L282).
2. **`superset-frontend/src/dashboard/components/SliceHeader/index.tsx`** — The parent component that renders the `header-controls` section containing `SliceHeaderControls`. You may need to adjust its layout to accommodate inline icon buttons instead of a single dropdown trigger [[3]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/SliceHeader/index.tsx#L275-L346).
3. **`superset-frontend/src/dashboard/types.ts`** — Contains the `MenuKeys` enum (`ForceRefresh`, `Fullscreen`, `Download`, etc.) used throughout [[4]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/types.ts#L257-L275). You probably won't need to change this unless you restructure the props.
**Is it recommended?** It's a reasonable customization, but keep a few things in mind:
- The menu items are **conditionally rendered** based on user permissions, feature flags, and chart type (e.g., the Download submenu has different options for pivot tables vs. regular charts) [[5]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx#L449-L497). You'll need to preserve all that conditional logic when splitting into individual buttons.
- Horizontal space in the chart header is limited, so showing multiple icons may crowd the header — especially since Download is actually a **submenu** with several export formats (CSV, Excel, image, etc.). You'll likely still need a small dropdown or popover for that one.
- Since you're forking from upstream Superset behavior, future upgrades may require you to re-apply these changes. Keeping the modification scoped to just these 2-3 files will minimize that maintenance burden.
Would you like me to look into the specific styling or the download submenu structure in more detail?
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=7b659fe3-841c-42be-bfd6-520a8585f443) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/39307#discussioncomment-16539494
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org