wet-boew / cdts-sgdc

Centrally Deployed Templates Solution (CDTS) / Solution de gabarits à déploiement centralisé (SGDC)
https://cenw-wscoe.github.io/sgdc-cdts/
MIT License
19 stars 14 forks source link

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

Open grifare opened 3 months ago

grifare commented 3 months ago

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

(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 commented 3 months ago

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

image

shawnthompson commented 3 months ago

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.