-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Open
Labels
#bug:cosmeticCosmetic/layout/design tweak neededCosmetic/layout/design tweak neededglobal:themingRelated to theming SupersetRelated to theming Superset
Description
Screenshot
Description
The three-dot menu button on chart has a visual alignment issue when a custom theme defines a linkHoverBg color for buttons. The icon appears off-center, pushed to the right edge of the button's hover background area.
Current Behavior
Default theme:
linkHoverBgis transparent by default- Button has padding-right: 0
- Icon appears visually centered ✅
Custom theme:
linkHoverBgis not transparent, e.g.,rgba(0,0,0,0.04)- Button has padding-right: 0
- Icon appears pushed to the right edge of the hover background ❌
Root Causes
- CSS issue:
padding-right: 0removes necessary spacing for the hover background - Semantic issue: Using
buttonStyle="link"for a menu toggle button (not an actual link) - Theme incompatibility: Custom theme tokens expose the layout flaw
Steps to Reproduce
- Apply custom theme in config.py
THEME_DEFAULT = {
"components": {
"Button": {
"linkHoverBg": "rgba(0,0,0,0.04)"
}
},
"algorithm": "default",
}
THEME_DARK = {
"components": {
"Button": {
"linkHoverBg": "rgba(255,255,255,0.08)"
}
},
"algorithm": "dark",
}- Navigate to any dashboard with charts
- Hover over any chart's three-dot menu button (top-right corner)
- Observe the visual defect - three-dot icon is not centered within the hover background
Metadata
Metadata
Assignees
Labels
#bug:cosmeticCosmetic/layout/design tweak neededCosmetic/layout/design tweak neededglobal:themingRelated to theming SupersetRelated to theming Superset