-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent placement of icons #1721
Comments
@schalkneethling Can you triage this? I'm sure I've filed an issue about it before but I couldn't find it from a quick search. Perhaps it got closed by mistake in the rush to land Fiori. |
This is not ideal but is a decision we made after exploring various design options. Because the number of icons that can be associated with a sidebar menu entry is variable we settled on the current design implementation. While moving the icons to the end of the menu entry, you do get the text to all align on the left but, you could also run into situations like this: or even this: This is not set in stone, however, and I am happy to have a discussion around this. If people generally feel that the icons work better at the end of an entry than the current implementation, we can change. |
Your argument is so good that it justifies de-prioritizing this issue. To add to your argument, yes, it becomes harder to eye-scan down the list when you have move horizontally a bit too. But, the icons are there to call to your attention which is important for your knowledge acquisition too. I.e. you really should pay attention to the fact that So, shall we make this a post-launch instead of a Yari1 one? |
I've been going through the issues in Developer Insights to try pruning away old issues that could use a fix or be closed as they have already been resolved. After reading the comments in this thread, it seems like icons are no longer displayed on https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table but they are still around for https://developer.mozilla.org/en-US/docs/Web/HTML for which they appear at the beginning of the line on the left of the text.
@schalkneethling I personally think the icons look fine and make sense being placed at the beginning of the line, if there was a readability or a11y gain by moving them to the end of the line, then I might be for that, but at the current moment I can't see any valid reason to reposition the icons. |
There is one situation where it made me scratch my head a bit on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String where the icon is above its corresponding text similar to how two block elements would stack. You've already sort of touched on the drawbacks of the design implementation having the icons at the end of the line for similar reasons. The I think the point I'm getting at is, Should the |
@schalkneethling Using .sidebar .icon-deprecated {
color: #95353a;
float: left;
} Updated with The icons are now always on the same line as the After adding |
Thank you for looking into this @tannerdolby. That last suggestion does indeed improve the situation. As mentioned in another issue, we are working on a redesign of MDN Web Docs and the sidebars will be a big part of it. Feedback and suggestions are super welcome and appreciated but, I would not want to put too much work into it before we have finalised our possible approach. I reckon what I am going to do is start a discussion around sidebars to gather people's feedback and suggestions and reference this and the other issue there as a conversation starter 😄 |
Your welcome @schalkneethling. Yeah I thought the last suggestion of adding
Agreed. I will head over to #4033 and participate in the discussion, I think my PR #4027 is ready for closing until we come to a conclusion on a design path for sidebars when discussion is resolved. |
I'm fine with seeing this issue closed until #4033 yields a direction to follow. |
Thanks, @mirunacurtean. There needs to be a larger discussion on this, so I will start a discussion and let you know so we can direct all discussions there until we have an actionable decision around this problem. |
Closing in favour of the discussion started here: mdn/mdn-community#69 |
When expanding the HTML elements in the side navigation of http://localhost:5000/en-US/docs/Web/HTML
the icons appear before the list items.
However, in other places (take http://localhost:5000/en-US/docs/Web/HTML/Element/table for example), the icons are shown behind the name. I'd vote for this approach to keep it consistent.
I tried pulling out the icons to the left, so that the element names aligns nicely, but that will fail once more than one icon applies. Thus, turning it into a suffix is preferable.
The text was updated successfully, but these errors were encountered: