docs(button-group): add docs around role="group" and role="toolbar"#2842
docs(button-group): add docs around role="group" and role="toolbar"#2842adamjohnson wants to merge 3 commits intostaging/eeveefrom
role="group" and role="toolbar"#2842Conversation
|
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Documentation Health
|
| Category | Score | |
|---|---|---|
| Element description | 8/25 | ❌ |
| Attribute documentation | 20/20 | ✅ |
| Slot documentation | 10/15 | |
| CSS documentation | 10/15 | |
| Event documentation | 15/15 | ✅ |
| Demos | 5/10 |
Recommendations:
- rh-button-group: describe purpose and context using words like 'for', 'when', 'provides', 'allows' (Element description, +5 pts)
- rh-button-group: use RFC 2119 keywords (MUST, SHOULD, AVOID) to clarify requirements (Element description, +5 pts)
- rh-button-group: mention accessibility considerations for slot content (Slot documentation, +5 pts)
- rh-button-group: reference design tokens or theme considerations in CSS descriptions (CSS documentation, +5 pts)
- rh-button-group: add descriptions to demos (Demos, +5 pts)
|
Size Change: +193 B (+0.07%) Total Size: 261 kB
ℹ️ View Unchanged
|
bennypowers
left a comment
There was a problem hiding this comment.
This ought to be summarized (with rfc2119 keywords) in the jsdoc
There was a problem hiding this comment.
this has to go in the appropriate places on public apis like slots and attr, or in the element description, otherwise it won't make it into the final manifest
see #2738 for examples
What I did
role="group"androle="toolbar"to the<rh-button-group>Accessibility page.<rh-button-group>: add accessibility docs #2769.Testing Instructions
<rh-button-group>in the DP.