Skip to content
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

Fix missing icons on some cascading menus #4059

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Fix missing icons on some cascading menus #4059

merged 1 commit into from
Nov 14, 2023

Conversation

carolinebridge
Copy link
Contributor

Noticed that cascading menus were missing icons even when they were supplied to the list of MenuItems.

Not sure if the code changes align with the original intent of the component (e.g. I couldn't figure out why 'inset' was being used and the icon wasn't instead?), but this PR adds the provided icons to a cascading menu back to the left side of the menu text.

@carolinebridge carolinebridge added the bug Something isn't working label Nov 10, 2023
@carolinebridge carolinebridge self-assigned this Nov 10, 2023
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (8a7b797) 63.20% compared to head (e91b3a6) 63.17%.

❗ Current head e91b3a6 differs from pull request most recent head 689c8a1. Consider uploading reports for the commit 689c8a1 to get more accurate results

Files Patch % Lines
packages/core/ui/CascadingMenu.tsx 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4059      +/-   ##
==========================================
- Coverage   63.20%   63.17%   -0.04%     
==========================================
  Files        1044     1044              
  Lines       30548    30551       +3     
  Branches     7285     7288       +3     
==========================================
- Hits        19309    19300       -9     
- Misses      11068    11082      +14     
+ Partials      171      169       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cmdcolin
Copy link
Collaborator

do you have a screenshot showing what you mean? the track menu uses CascadingMenuButton but it has icons

@carolinebridge
Copy link
Contributor Author

before:
image

after:
image

@cmdcolin
Copy link
Collaborator

oh gotcha, that makes sense. probably was lost in translation to the 'cascading style', good catch

@cmdcolin
Copy link
Collaborator

random thing: looks like this makes the 'display types' menu option go out of alignment in some cases

image

@cmdcolin cmdcolin merged commit 3b6ecff into main Nov 14, 2023
@cmdcolin cmdcolin changed the title Fixes missing icons on cascading menus Fix missing icons on cascading menus Nov 14, 2023
@cmdcolin cmdcolin changed the title Fix missing icons on cascading menus Fix missing icons on some cascading menus Nov 14, 2023
@cmdcolin cmdcolin deleted the fix-broken-icons branch November 14, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants