Customizing MoreMenuItem wont work the usual way
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
I found a small issue with the ► Symbol of the MoreMenuItem in MenuBar.
First of all, it wasnt clear to me at first, that this isnt a icon.
Using
getMoreMenuItem().setIcon(VaadinIcons.MENU)
would cause this:
Which is quite confusing.
Also, using:
getMoreMenuItem().setText("")
does not remove the Arrow. I needed to use:
getMoreMenuItem().setText(" ")
to remove the Arrow. Now i can use my Hamburger Menu Icon but it is a little offset. So can you change the default ► into an Icon so it is easier to change it?
Thanks in advance
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from MenuBar's MoreMenuItem and inspect how getMoreMenuItem().setIcon() and setText() handle the default arrow symbol. Done means the arrow can be customized or removed without the current spacing and rendering problems; no specific source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100