-
Notifications
You must be signed in to change notification settings - Fork 195
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
spectrum-Menu-item
label alignment subject to cascade of text-align CSS property
#3058
Comments
Hi @Rocss! Thanks so much for reaching out with your issue. Can I ask what was the original goal in adding the In our library, we would expect inline or CSS that is added by the application to always take precedence over the CSS assigned by the library. Ours is a utility but not meant to force styles or make them too difficult to override. We also offer a set of modifier custom properties that can be used to customize select parts of the UI. You can find those for Menu here: https://github.com/adobe/spectrum-css/blob/main/components/menu/metadata/mods.md. Please do reach out if we can be of more assistance! |
Hey @castastrophe, this is a regression only became an issue after the Overlay V2 changes since overlays being inserted adjacent to the trigger. This bug will continue to happen in menus in similar situations. It's a simple change and the team would be happy to provide a PR if y'all would accept it. |
@castastrophe After Larry's comment, would you please let us know if this is something you consider adding to the library? |
@Rocss thanks for following up with us on this. With regard to what @lazd mentioned:
We'd love to understand this more and maybe see the DOM structure you're describing. Would you be able to spin up a small reproduction of the problem/use case? I'm sure we all know how complex these menu items can get, so we want to be sure that we fully understand the impact of the change. Thanks! |
Description
Whenever text-align is used on a parent element, all sp-menu-item labels inherit that instead of explicitly defining start.
Steps to reproduce
.spectrum-Menu
Expected behavior
Menu items should not be centered and should perserve the initial text alignment
Screenshots
Environment
Additional context
Additional JIRA information: CCEX-136334
The text was updated successfully, but these errors were encountered: