Open joelanman opened 1 year ago
I'm moving this to the Design System repo as I think it's a better place for it than the frontend repo. However we might also want to consider documenting these in the Frontend Docs.
It seems like we currently have most utility and override classes now documented somewhere in the Design System, with govuk-clearfix
and govuk-form-group
being the main holdouts.
Context
Trying to use classes such as
govuk-!-display-none
orgovuk-visually-hidden
. I couldn't find any documentation of them, a list would be good like the Sass API documentation.Update:
Some classes are documented in the Styles section: https://design-system.service.gov.uk/styles
But I don't think they all are, and personally I'd find an API style list helpful
Alternatives
I guessed and got it right, I've heard that others look at the Frontend Review app, or look in Chrome Developer Tools > Styles
Additional information (if applicable)
On hiding things specifically, I can see Design System website uses
hidden
attribute instead - is this a recommended approach? Should that be documented too?