Fix outdated frontend guide docs related to Pajamas

What does this MR do?

Several parts of the frontend guide have fallen out of date with the CSS utilities, components, and Pajamas pages they describe. This MR updates them to match how things work now:

  • accessibility/_index.md and accessibility/automated_testing.md said we aim for WCAG 2.1. Our target is now 2.2, which is what the accessibility page they link to says.
  • accessibility/best_practices.md used gl-p-0!. That trailing ! form comes from the utility classes we had before Tailwind, and nothing generates it anymore. With Tailwind the class is !gl-p-0.
  • accessibility/best_practices.md said to add :focus styles wherever you add :hover. GitLab UI components now use :focus-visible almost everywhere, and the keyboard-only guidance recommends it, so the advice says :focus-visible now.
  • icons.md colored its sprite_icon example with css_class: 'icon-danger', a class no stylesheet defines anymore. The example now uses the variant argument sprite_icon takes today, which applies gl-fill-icon-danger. I added variant to the documented signature too.
  • style/scss.md swapped margin-top: 0.5rem for gl-mt-5, which is 1rem. The matching utility is gl-mt-3.
  • style/scss.md said our Tailwind configuration doesn't support max-width container queries. It does now: the container query plugin from @gitlab/ui provides @max-* variants, and the page's own examples use them. I removed that sentence.
  • frontend_faq.md had an entry about GitLab UI components that don't conform to Pajamas, quoting a warning banner on the Pajamas site. That banner was removed in 2022, and the components in GitLab UI are the design system implementation, so the entry no longer describes anything. I removed it and renumbered the rest. The one link into the FAQ by anchor, in gitlab_flavored_markdown/_index.md, is updated to match.
  • dark_mode.md linked twice to a Pajamas page that no longer exists. Both links now go to the design tokens usage guide, where that content moved.

I found these while auditing design guidance across the monolith docs and Pajamas. Anything in that audit that is a real difference in guidance, rather than outdated information, is going to the team for discussion and isn't in this MR.

Claude Code did the first-pass audit and drafted these edits. I reviewed the changes before committing.

gitlab-org/gitlab-services/design.gitlab.com#3716

Author's checklist

Reviewer's checklist

Documentation-related MRs should be reviewed by a Technical Writer for a non-blocking review, based on Documentation Guidelines and the Style Guide.

  • If the content requires it, ensure the information is reviewed by a subject matter expert.
  • Technical writer review items:
    • Ensure docs metadata is present and up-to-date.
    • Ensure the appropriate labels are added to this MR.
    • Ensure a release milestone is set.
  • Review by assigned maintainer, who can always request/require the reviews above. Maintainer's review can occur before or after a technical writer review.

Merge request reports

Loading
Loading