Skip to content

feat: add MenuBar.close()#5745

Merged
sissbruecker merged 8 commits intomainfrom
feat/5742
Jan 24, 2024
Merged

feat: add MenuBar.close()#5745
sissbruecker merged 8 commits intomainfrom
feat/5742

Conversation

@mvysny
Copy link
Copy Markdown
Member

@mvysny mvysny commented Nov 21, 2023

Description

add MenuBar.close() which allows us to build a PopupButton easily on top of MenuBar. Also allows you to have menu items different than <vaadin-menu-item>, which also close the MenuBar upon clicking (requires a manual click listener + calling close()).

Fixes #5742

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.
  • I have not completed some of the steps above and my pull request can be closed immediately.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

@mvysny mvysny requested a review from tomivirkki November 21, 2023 09:09
@mvysny mvysny requested a review from tomivirkki November 22, 2023 13:35
@tomivirkki tomivirkki changed the title feat: add MenuBar.close(). Fixes #5742 feat: add MenuBar.close() Nov 24, 2023
Copy link
Copy Markdown
Member

@tomivirkki tomivirkki left a comment

Choose a reason for hiding this comment

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

Blocking merge for now since this might still need some more internal discussion

@mvysny mvysny requested a review from tomivirkki November 24, 2023 09:30
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sissbruecker
Copy link
Copy Markdown
Contributor

PR for adding public API to web component: vaadin/web-components#7102

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 24.4.0.alpha3 and is also targeting the upcoming stable 24.4.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MenuBar.close()

4 participants