mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.18k stars 916 forks source link

Revert to accordion on Fx Privacy Notice page #6713

Closed ejregithub closed 5 years ago

ejregithub commented 5 years ago
Estimates
PM .5
ENG 2

Description: Near the end of last year, the accordions/expanders on the Firefox Privacy Notice were removed. It's important that we put them back.

GDPR created an requirement that Privacy Notices be very short and understandable. But it also allows us to create a "layered" privacy policy. The first layer is the headlines. The second layer (under the accordions) has more explanation. Since legal creates and maintains this page to manage our legal risk, it's important to us to have control over how it looks.


:yellow_heart: Success Criteria :yellow_heart:

:heavy_exclamation_mark: Risks :heavy_exclamation_mark:

Tasks

ejregithub commented 5 years ago

Comment from Mika: Some of the anchors seem to have gotten lost. since someone has to go in and put the accordian back, can they make sure each section has an anchor? This is important because we have a lot of web content that points to a specific part of the FxA privacy notice (like the section on Sync, or the section on Content Recommendations, etc.).

alexgibson commented 5 years ago

I've opened a PR that reverts removal of the accordion. Some notes from testing this old code:

Whilst restoring this code I realised it was never very accessible. The ARIA support isn't great, and the individual sections are not expandable via keyboard 😩. There seems to be some urgency in restoring this that I don't fully understand (from a legal point of view), but if we are to support this accordion as a feature long term, then we should at least file bugs and make sure our privacy content is accessible to everyone.

Also note re: anchors. The content for this page is controlled by the legal team over in https://github.com/mozilla/legal-docs/. If anchors have been removed, it will likely be from content there, and not something in bedrock (we just consume the markdown and convert it to HTML). Also note that the accordion actually prevented people from linking directly to specific sections of content, without also clicking to open it.

alexgibson commented 5 years ago

Adding this as blocked until we hear back on the a11y issues from legal. To me this seems like a bigger problem than not having the accordions at all. I can work on fixing the issues, but this is will naturally be more effort / time to complete.

alexgibson commented 5 years ago

Ok, I've spent some time fixing the accessibility issues on this accordion. Longer term, we should port this page to use the new standard Details molecule in Protocol. What we have now is a stop-gap until we can prioritise that work.