You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,56 @@ We encourage developers to follow the following guidance when submitting new fea
122
122
1. Update the [documentation](https://github.com/microsoftgraph/microsoft-graph-docs/tree/master/concepts/toolkit) when necessary
123
123
1. Follow the [accessibility guidance](https://developer.mozilla.org/en-US/docs/Web/Accessibility) for web development
124
124
125
+
126
+
### Accessibility Guidelines
127
+
128
+
New features and components should folow the following accessibility implementation guidelines:
129
+
130
+
(for ease of use)
131
+
1. Visit the following location: https://accessibilityinsights.io/en/
132
+
2. Install the extension, and test
133
+
134
+
**required**:
135
+
-[ ]`aria-label` | *string*: "Login Button", "Megan Bowen" | - meaningful text should have identifiable labels for screen readers
136
+
137
+
*example (mgt-login):*
138
+
139
+
```html
140
+
<button
141
+
class="popup-command"
142
+
@click=${this.logout}
143
+
aria-label="Sign Out">
144
+
Sign Out
145
+
</button>
146
+
```
147
+
148
+
-[ ]`tab-index/focus` | *string*: "0", "-1" | - components that are interactive or display information should be **visibilly** navigatable by `tab` key control. Additional information in the aria label should be displayed when this feature is used.
149
+
150
+
*example (mgt-people):*
151
+
152
+
```html
153
+
<mgt-persontabindex="0" ></mgt-person>
154
+
```
155
+
```css
156
+
mgt-person:focus{
157
+
border-color: blue;
158
+
}
159
+
```
160
+
161
+
-[ ]`alt` | *string*: "person icon" | - any `<img>` tag should contain `alt` text as well
162
+
163
+
*example (mgt-person):*
164
+
165
+
```html
166
+
<img
167
+
title=${this.personDetails.displayName}
168
+
aria-label=${this.personDetails.displayName}
169
+
alt=${this.personDetails.displayName}
170
+
src=${this.personDetails.imageasstring}
171
+
/>
172
+
```
173
+
174
+
125
175
<!-- ### Testing
126
176
127
177
Your changes should include tests to verify new functionality wherever possible.
0 commit comments