Skip to content
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

Main menu does not work when using "Basic HTML version" on some government websites #1234

Open
grifare opened this issue Aug 29, 2024 · 2 comments

Comments

@grifare
Copy link
Member

grifare commented Aug 29, 2024

While conducting WCAG testing for a portal, on the basic HTML version, I discovered that:

  • Main menu could not be operated at all, neither with keyboard nor with mouse. Accordions do not open, menu links do nothing.
  • The contrast issue on the menu is so severe that main menu becomes dark blue rectangles, as if there is no text in them. Only when they are hovered or they receive focus, the link names are revealed.

(Please note that Canada.ca works normally.)

I assume websites using this template linked below have the same issue:
CDTS Sample - Custom Menu (Basic HTML)

@shawnthompson
Copy link
Member

Here is a screenshot of what you get when "Basic HTML" is enabled:

image

@shawnthompson
Copy link
Member

This is what I have so far for CSS changes in the public/gcweb/cdtsapps.css:

    /*Menu bar - When `wbdisable=true` passed in URL*/
    .wb-disable #wb-sm .menu {
        background: #E1E4E7;
        border-bottom: 1px solid #D3D4D8;
        border-top: 1px solid #D3D4D8;
    }

    /*Menu bar dropdown - When `wbdisable=true` passed in URL*/
    .wb-disable .wb-menu .sm {
        display: inline;
        max-height: fit-content;
        background: #C9CFD4;
    }

    /*Menu bar dropdown - links - When `wbdisable=true` passed in URL*/
    .wb-disable #wb-sm .menu .sm>li>a {
        color: #335075;
    }
    

The hover still needs some work and you might want specific colour combos to fit the Canada.ca look and feel. I wish I had more time to give you on this. I kind of miss working on this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants