Loading
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.mdandaccessibility/automated_testing.mdsaid 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.mdusedgl-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.mdsaid to add:focusstyles wherever you add:hover. GitLab UI components now use:focus-visiblealmost everywhere, and the keyboard-only guidance recommends it, so the advice says:focus-visiblenow.icons.mdcolored itssprite_iconexample withcss_class: 'icon-danger', a class no stylesheet defines anymore. The example now uses thevariantargumentsprite_icontakes today, which appliesgl-fill-icon-danger. I addedvariantto the documented signature too.style/scss.mdswappedmargin-top: 0.5remforgl-mt-5, which is 1rem. The matching utility isgl-mt-3.style/scss.mdsaid our Tailwind configuration doesn't support max-width container queries. It does now: the container query plugin from@gitlab/uiprovides@max-*variants, and the page's own examples use them. I removed that sentence.frontend_faq.mdhad 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, ingitlab_flavored_markdown/_index.md, is updated to match.dark_mode.mdlinked 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.
Related issues
gitlab-org/gitlab-services/design.gitlab.com#3716
Author's checklist
- Follow the:
- If you are a GitLab team member, request a review based on:
- The documentation page's metadata.
- The associated Technical Writer.
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.