Skip to content

[MenuItem] label alignment subject to cascade of text-align CSS property #3058

Open
@Rocss

Description

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

  1. Open any UI with a sp-menu
  2. Manually add text-align:center to .spectrum-Menu
  3. Observe menu items are centered now

Expected behavior

Menu items should not be centered and should perserve the initial text alignment

Screenshots

Screenshot 2024-08-30 at 16 39 08

Environment

  • Version of the impacted component(s):
  • Browser(s) and OS(s):

Additional context

Additional JIRA information: CCEX-136334

Metadata

Labels

bugResults from a bug in the CSS implementationsync to jiraThese will be pushed into adobe internal jira

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions