사이드바의 '더 보기'에서 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)

https://github.com/discourse/discourse/pull/32882

6개의 좋아요

Thanks for the speedy fix!

3개의 좋아요