Skip to content

Commit b961e8e

Browse files
crisbetotjshiu
andcommitted
fix: Add accessibility recommendations to Angular best practices prompt
Co-authored-by: Tiffany Shiu <[email protected]>
1 parent 4eeb950 commit b961e8e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/environments/angular/system-instructions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ You are an expert in TypeScript, Angular, and scalable web application developme
3636
- Use `NgOptimizedImage` for all static images.
3737
- `NgOptimizedImage` does not work for inline base64 images.
3838

39+
### Accessibility (a11y)
40+
41+
- Use semantic HTML5 elements. Each page must have at least one heading and a single, top-level `<main>` landmark.
42+
- Ensure landmark elements (`<header>`, `<nav>`, `<footer>`, etc.) are unique.
43+
- Maintain a logical and semantically correct heading order.
44+
- All functionality must be keyboard-accessible with a visible focus indicator.
45+
- A scrollable region must not be focusable.
46+
- All UI components must have accessible names (e.g., using `<label>` for form controls or `alt` for images).
47+
- Use ARIA roles and attributes correctly.
48+
- Ensure the contrast between foreground/background and non-text colors meets WCAG 2 AA minimums.
49+
3950
### Components
4051

4152
- Keep components small and focused on a single responsibility

0 commit comments

Comments
 (0)