侧边栏中的‘更多’的DMenu即使不是当前页面也会选择第一个项目

I am at the /about page more open up the ‘More’ menu in the sidebar.

As you can see, the ‘Users’ item seems to be selected, although I am at the About page. Would it seem more natural that the one selected is the one you are currently at? This doesn’t happen, since the page you are at brings the list item to outside the menu, in the sidebar items.

Therefore, is it possible that the top-most does not appear to be selected?

4 个赞

To clarify, my finger was not pressing on the ‘Users’ item when this screenshot was taken.

2 个赞

I also wonder why the first item is highlighted on the More menu. When you inspect it, the highlight disappears.

I like the pattern that currently active items are moved out of the menu to the parent menu. So it seems there just shouldn’t be an active highlight on the More menu, as there’s actually no active items? The pattern is not consistent though, for example here on Meta it doesn’t apply to the leaderboard pages.

4 个赞

This is because when the menu is opened we focus the first item for keyboard navigation.

We can change this from focus to focus-visible, which should only show the highlight when needed (like when keyboard nav is in use)

6 个赞

Thanks for the speedy fix!

3 个赞