-
Notifications
You must be signed in to change notification settings - Fork 4k
[feat] Update AGENTS rules for better a11y practices #13411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Update AGENTS rules for better a11y practices #13411
Conversation
✅ PR preview is ready!
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
| ## Static Data Structures | ||
|
|
||
| - Extract static lookup maps and constants to module-level scope outside functions/components | ||
| - Static data recreated on every call/render wastes memory and CPU | ||
| - Exception: Keep inside function only if data depends on parameters, props, or state | ||
|
|
||
| <good-example> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: These newlines are to fix prettier. Without them, it doesn't properly detect the code blocks delineated by ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive accessibility (a11y) guidelines to the TypeScript coding standards across three configuration files used by AI coding agents and developers. The guidelines establish best practices for creating accessible web interfaces in the Streamlit frontend codebase.
Key changes:
- Added a new "Accessibility (a11y) principles" section with 5 major guidelines covering semantic HTML, accessible naming, assistive technology support, keyboard interaction, and focus styling
- Minor formatting improvements to existing code examples in the "Static Data Structures" section
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
frontend/AGENTS.md |
Added accessibility guidelines section and improved code example formatting |
.github/instructions/typescript.instructions.md |
Added identical accessibility guidelines section and improved code example formatting |
.cursor/rules/typescript.mdc |
Added identical accessibility guidelines section and improved code example formatting |
74c62a2 to
8b8a1f9
Compare
📈 Frontend coverage change detectedThe frontend unit test (vitest) coverage has increased by 0.0300%
🎉 Great job on improving test coverage! |
lukasmasuch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
Thank you for the approval, @lukasmasuch , can you also approve with your sfc-gh account? Thank you! |
Merge activity
|
8b8a1f9 to
f11bd0d
Compare

Describe your changes
Added comprehensive accessibility (a11y) guidelines to TypeScript coding standards.
GitHub Issue Link (if applicable)
Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.