Skip to content

Docs: use ScssDocs shortcode for Sass utilities API sections - #42766

Merged
julien-deramond merged 3 commits into
v6-devfrom
v6-dev-jd-docs-use-scssdocs-for-all-sass-utilities-api
Jul 28, 2026
Merged

Docs: use ScssDocs shortcode for Sass utilities API sections#42766
julien-deramond merged 3 commits into
v6-devfrom
v6-dev-jd-docs-use-scssdocs-for-all-sass-utilities-api

Conversation

@julien-deramond

@julien-deramond julien-deramond commented Jul 28, 2026

Copy link
Copy Markdown
Member

Description

Use the <ScssDocs> shortcode for all the "Sass utilities API" docs sections, matching some .mdx files in v6 and v5 behavior, instead of hand-copied scss snippets that can drift from the source.

  • Convert 14 utility docs pages to <ScssDocs>: align-content, align-items, align-self, divide, font-family, font-style, grid, justify-content, justify-items, place-items, pointer-events, space, text-alignment, user-select
  • Fix real drift found during conversion: font-family, grid, and user-select had stale snippets that no longer matched scss/_utilities.scss
  • Add missing scss-docs marker pairs in scss/_utilities.scss for the utilities above
  • Narrow utils-flex to only cover flex/flex-direction/flex-grow/flex-shrink/flex-wrap, matching what flex.mdx documents; split utils-interaction into utils-user-select/utils-pointer-events
  • Add a "Sass utilities API" section to aspect-ratio.mdx, which was missing one
  • Remove the unused utils-spacing wrapper marker and an orphaned scss-docs-end utils-text comment

@julien-deramond
julien-deramond marked this pull request as ready for review July 28, 2026 19:31
@julien-deramond
julien-deramond requested a review from a team as a code owner July 28, 2026 19:31
@julien-deramond
julien-deramond merged commit f39e617 into v6-dev Jul 28, 2026
12 checks passed
@julien-deramond
julien-deramond deleted the v6-dev-jd-docs-use-scssdocs-for-all-sass-utilities-api branch July 28, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant