Repository navigation
Keep role names with each row of the Cloud permissions tables - #5715
Merged
Merged
Conversation
Kapa chunks long tables, so a row of bare check marks lost the header that said which roles they covered. Asked which roles can create billing reports, it answered that the columns were flattened and it couldn't tell. RoleCheck renders the same check mark with the role name as visually hidden text, so the page looks unchanged while screen readers, scrapers, and the Markdown pipeline get the role name on every row.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview links
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the role-aware permissions table update.
No open issues 🎉
What changed in this PR
This PR keeps role names attached to Cloud permissions table cells for screen readers and text consumers, while preserving the visible check marks and footnotes.
Changes:
- Adds a reusable
RoleCheckcomponent with visually hidden role text. - Replaces bare check marks in the permissions reference with role-aware cells.
- Adds Markdown conversion support, regression coverage, and component usage documentation.
| File | Description |
|---|---|
tests/test-mdx-to-md.mjs |
Tests role-name conversion and footnote preservation; registers the new strategy. |
src/components/RoleCheck/RoleCheck.module.css |
Hides role text visually while retaining accessibility access. |
src/components/RoleCheck/RoleCheck.js |
Renders a check mark with accessible role text. |
src/components/RoleCheck/index.js |
Exports the component. |
src/components/index.js |
Exposes RoleCheck through shared component imports. |
scripts/mdx-to-md.mjs |
Converts RoleCheck into a check mark and role name in Markdown. |
readme/COMPONENTS.md |
Documents component usage and output. |
docs/cloud/manage-access/permissions-reference.mdx |
Adds role labels to check-mark cells without changing permission assignments. |
Review effort: Balanced
Duncanma
added a commit
that referenced
this pull request
Nov 13, 2026
Records the topics from the first kapa-improve-docs run (2026-10-13 to 2026-11-12): two fixed in #5715 and #5716, six deferred with their signal counts and reasons. Later runs read this file so they don't propose the same topic again unless its volume roughly doubles. The run also used a "certain but hedged" scan, which finds answers Kapa marked certain whose text still hedges. Kapa's uncertain flag and Coverage Gaps miss these.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
RoleCheckcomponent and uses it for all 577 check marks in the tables on Permissions reference.<RoleCheck role="Finance Admin" />renders the same ✅ as before, with the role name as visually hidden text (the clip-rect patternAgentDirectiveuses). The ✅ itself isaria-hidden. Footnote markers (*,†,‡) are kept.The Markdown pipeline (
scripts/mdx-to-md.mjs) turns it into✅ Finance Admin, so the.mdoutput andllms-full.txtcarry the role name too. Documented inreadme/COMPONENTS.md.Why
Kapa splits long tables into chunks, and a row of bare check marks loses the header row that names the roles. Asked which roles can create billing reports, Kapa answered (marked certain) that the columns were flattened and it couldn't tell which roles had the check marks. Screen readers had a similar problem: each cell read as "check mark" with no role.
The role name is real text rather than an
aria-labeloralt, because scrapers and chunkers often drop attributes.Appearance
No visible change. The hidden span measures 1px with
clip-path: inset(50%), and the tables render with only the ✅ marks.Checks
yarn buildpasses. The built row text readsCreateBillingReport ✅ Finance Admin ✅ Account Owner.node --test tests/test-mdx-to-md.mjs: 136 pass, including a newRoleChecktest.vale --config .vale-ci.iniis clean on the page._custom_role_permissions_table.mdx(generated bytemporal-cicd) has no check marks, so the sync won't touch this.