תפריט DMenu ל-'עוד' בסרגל הצד בוחר בפריט הראשון, גם אם הוא לא הדף הנוכחי

סיכום מבוסס בינה מלאכותית

The discussion revolves around the ‘More’ menu in the sidebar, where the first item is selected by default, even if it’s not the current page. NateDhaliwal and nolo pointed out this inconsistency, suggesting that the currently active item should be highlighted instead. awesomerobot explained that this behavior is due to keyboard navigation and proposed a fix by changing focus to focus-visible, which would only show the highlight when needed. A pull request has been created to address this issue, and NateDhaliwal has acknowledged the speedy fix.

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 לייקים

להבהיר, האצבע שלי לא לחצה על הפריט ‘משתמשים’ כאשר צולם מסך זה.

2 לייקים

אני גם תוהה מדוע הפריט הראשון מודגש בתפריט עוד. כשמסתכלים עליו, ההארה נעלמת.

אני אוהב את הדפוס שבמהלכו פריטים פעילים מוסטות מחוץ לתפריט לתפריט האב. אז נראה שהלא צריך להיות בהירות פעילה בתפריט עוד, מכיוון שאין בעצם פריטים פעילים? הדפוס אינו עקבי, למשל כאן ב-Meta זה לא מוחל בדפי הלוח מובילים.

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 לייקים

תודה על התיקון המהיר!

3 לייקים