Skip to content

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Jan 29, 2025

What does this PR do?

This PR adds theme.menu.container which styles the Box directly surrounding the menu items. If menu groups are provided, then theme.menu.group.container will override theme.menu.container where appropriate.

Where should the reviewer start?

src/js/components/Menu/Menu.js

What testing has been done on this PR?

Adjusted Custom Themed menu storybook.

Added jest test.

How should this be manually tested?

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

Do the grommet docs need to be updated?

Yes.

Should this PR be mentioned in the release notes?

Yes.

Is this change backwards compatible or is it a breaking change?

Backwards compatible.

@taysea taysea requested review from jcfilben and halocline January 29, 2025 22:12
@taysea taysea requested a review from jcfilben January 30, 2025 00:19
Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@taysea taysea requested a review from MikeKingdom January 30, 2025 19:47
Copy link
Collaborator

@MikeKingdom MikeKingdom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@taysea taysea removed the request for review from halocline January 30, 2025 20:59
@jcfilben jcfilben merged commit b9252e4 into master Jan 30, 2025
16 checks passed
@jcfilben jcfilben deleted the menu-container branch January 30, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants