webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Clicking outside of the text of a menu button doesn't link to another page

Open Andrei199991 opened this issue 6 years ago • 7 comments

When creating a Navigation component (packages/app-page-builder-theme/src/components/Navigation.tsx), it is only possible to access the linked url by clicking on the button's text itself (the blue area in the screenshot).

Even though the li element intuitively shows us we're focusing the button, clicking it sometimes won't do anything. This happens when we click on the li's padding rather than its anchor's content (the green area in the screenshot).

image

This is:

  • Bug

Steps to Reproduce the Problem

Run the site app (ie: from ./examples/apps/site) and check the menu.

Andrei199991 avatar Mar 03 '20 09:03 Andrei199991

We should remove the padding from the list item li, and move it to the anchor element...this will fix it.

SvenAlHamad avatar Mar 03 '20 10:03 SvenAlHamad

Had to revert changes made in the PR, since it introduced another bug with displaying the menu items: image

I'm reopening this issue.

adrians5j avatar May 01 '20 15:05 adrians5j

I will work on this issue if it is still relevant (after the recent changes to the project I mean).

TommyJackson85 avatar Jul 04 '20 01:07 TommyJackson85

@Ashu96 @doitadrian please confirm this is still an issue, I'm totally out of the loop on this one.

Pavel910 avatar Jul 04 '20 10:07 Pavel910

Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Slack Community or ping one of the reviewers. Thank you for your contributions!

adrians5j avatar Oct 14 '20 01:10 adrians5j

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

webiny-bot avatar Dec 14 '20 07:12 webiny-bot

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

webiny-bot avatar Feb 13 '21 07:02 webiny-bot