Skip to content

Add PUT and PATCH API link colors - #928

Merged
Sahil Johari (sahiljohari) merged 2 commits into
mainfrom
sahil/openapi-method-colors
Oct 5, 2026
Merged

Sahil Johari (sahiljohari) merged 2 commits into
mainfrom
sahil/openapi-method-colors

Conversation

@sahiljohari

@sahiljohari Sahil Johari (sahiljohari) commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Color API link methods consistently across GET, POST, PUT, PATCH, and DELETE; PUT uses Atlas's theme-aware warning-dark and PATCH uses info-active to keep the labels readable, including on hover.
  • Show all five HTTP methods in the API link button documentation.
  • Include a patch changeset for @microsoft/atlas-css.

Commits

  • 3e0bdcc8 feat(css): color PUT and PATCH API links
  • 553c2215 fix(css): use accessible API link method colors

Testing

  • npm run lint:css
  • npm run build:css
  • Repository pre-push lint suite
  • Manually rendered the Atlas docs page and docs-ui service page using local Atlas CSS.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 553c221

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@microsoft/atlas-css Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Use theme-aware warning and info variants for PUT and PATCH and document all five method colors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sahiljohari
Sahil Johari (sahiljohari) marked this pull request as ready for review October 5, 2026 16:46
@sahiljohari
Sahil Johari (sahiljohari) requested a review from a team as a code owner October 5, 2026 16:46
@sahiljohari
Sahil Johari (sahiljohari) merged commit fe76d85 into main Oct 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants