Open AmyJuneH opened 1 year ago
I cannot find an error count button on the dashboard. Where is it placed? (I take it is always visible.)
I believe @AmyJuneH is referring to the error indicator in the admin bar:
Yes Thank you @laryn
PR is ready, I fixed a lot of contrast and hover/focus a11y issues (including the one in the ticket): https://github.com/backdrop/backdrop/pull/4804
One test that has nothing to do with CSS failed SimpleTest (Functional Tests) / Simpletest batches (7.4, 3, mariadb-10.3)
trying to get them rerun?
I just updated the branch with the latest core commits so the tests will run again.
Thanks @wesruv 🙏🏼 ...I need to take a better look, but as initial feedback:
box-shadow
) in the top-level menu items that are in the active trail 👍🏼 ...although I'd prefer the inverse: blue for the current, and white for the hovered-over. The reason being that as it is currently, the white underline "blends" with the rest of the page, and it gives the appearance of the menu item being "elevated" or mispositioned by an accidental margin/padding or something. Side-by-side screenshot/mockup of what I mean:
I messed around with it further, I like the active item being white with a blue border, got that added.
I noticed the focus state wasn't being caught by the CSS when navigating with keyboard, so I addressed that, and added a 2px outline of the blue color to give a halo to the focused item. That feels more obvious and looks nice.
Keyboard accessibility might be a bigger issue on the admin menu (I can't seem to get the submenus to activate with a keyboard, and the "This page" item gets skipped over completely as shown in the screencast below). That's not part of this issue.
As far as this issue goes, the search box also could get a focus outline.
@laryn yea, I'm noticing that too. The site is still usable without sub menus, and I think I'd rather change the tech behind the menu than try to fix what's there. I don't think we have any menu JS in Backdrop land that's up to snuff.
Good catch on the search! I'll get that added.
@wesruv Testing the PR shows the menu items when they reverse direction and overlap other menu items are not readable.
Hrmm, @izmeez I'm not able to reproduce that bug, I double checked, and I shouldn't have changed any layout CSS. I wonder if it was a caching issue or something weird happening?
Can anyone else reproduce that issue?
I saw the preview site for this PR as @wesruv sees it. I recall I have seen something like @izmeez screenshot in another preview site or a site.
I can reproduce it: Changing the browser's window size, when there is not enough space to the right of the menu item, the sub-menu is rendered over the existing menu item, as in @izmeez screenshot.
I do not recall this is specific for this PR. If I remember correctly, it happened also with a different preview site.
I will check what happens with a preview site for a different, maybe newer, PR.
I tried with the preview site for https://github.com/backdrop/backdrop/pull/4818.
When there is not enough space to the right of the menu item, the sub-menu item is drawn over the menu item, but it completely covers it. I can clearly read the sub-menu item text.
Thanks for the work on this @wesruv 🙏🏼 ...this looks like a considerable improvement over the current situation 👍🏼
I noticed the focus state wasn't being caught by the CSS when navigating with keyboard, so I addressed that, and added a 2px outline of the blue color to give a halo to the focused item. That feels more obvious and looks nice.
That halo looks nice indeed, but for the "extra" items in the toolbar, it also has a white outline in addition to the blue one you've added:
Keyboard accessibility might be a bigger issue on the admin menu (I can't seem to get the submenus to activate with a keyboard, and the "This page" item gets skipped over completely as shown in the screencast below). That's not part of this issue.
I've noticed the same problems while testing this @laryn, and indeed not part of the scope of this issue here.
... I think I'd rather change the tech behind the menu than try to fix what's there. I don't think we have any menu JS in Backdrop land that's up to snuff.
@wesruv we have #2809 for the a11y and keyboard navigation, and now #6669 for the tab index for the "This page" item 😉
Can anyone else reproduce that issue?
Yes @wesruv, I can reproduce it, same as @avpaderno in the previous comments here. On a vanilla installation of Backdrop, on a demo sandbox (without the changes in the PR provided here), the items expand towards the opposite direction, but the top-most item has a background that prevents the text of any underlaying item to blend with the text of the expanded item:
...in the PR sandbox, the background is missing, which makes the expanded item become "see-through", and causes the text overlap.
To reproduce, you'll need to reduce the width of your window to a point where the "extra" items are collapsed/hidden away, and only the main navigation items are left. Try to reduce the with to the point just before the main navigation items also collapse. Then, hover over the previous-to-last top-menu item (Configuration), and try hovering over any menu item that goes 3 levels deep (like the "Date and time formats" item that @izmeez mentioned).
Other feedback:
Can we please use this same blue color for hover-over for all non-top-level items?
The fixes in the PR have expanded to more than the original bug report here, which warrants a title/scope change I think. I know that there's many people that don't like when that happens, but I'm fine with it in this case here. I really want to see this overhaul get into the next bug fix release.
Created a follow up PR for the issue @izmeez brought up since it's distinct from this one, and added a fix for it: https://github.com/backdrop/backdrop-issues/issues/6687
Created a follow up issue for what @laryn noticed: https://github.com/backdrop/backdrop-issues/issues/6688
There some some significant a11y issues there.
Keyboard accessibility might be a bigger issue on the admin menu (I can't seem to get the submenus to activate with a keyboard, and the "This page" item gets skipped over completely as shown in the screencast below). That's not part of this issue.
As far as this issue goes, the search box also could get a focus outline.
@wesruv - I am a bit confused about if there are additional issues mentioned above that still need to be addressed OR if you have fixed everything you plan to fix in this issue AND moved over problems to other issues?
Does this issue need more testing/feedback now?
The PR Tugboat has expired and will need to be rebased. This issue is also related to a new issue #6710
Color contrast is insufficient - the "error count" button in the dashboard
The "error count" button in the dashboard has insufficient color contrast. "The color of the text and the color of the background are not in sufficient contrast to each other. The contrast ratio should be at least 4.5:1 for normal text and 3:1 for large text. Note: Contrasts are not relevant where content is hidden. But make sure that for hidden content, which becomes visible when receiving focus, the contrast ratio is sufficient. Insufficient contrast between text and its background can give problems for users with low vision and color blindness, but it can also affect a lot of other users, leading to important text potentially being overlooked."
Results: 3.39 out of a required 4.5
eeeeee / rgb(238,238,238)
Background color
ee3d23 / rgb(238,61,35)