Skip to content

Commit 6d91482

Browse files
authored
Merge pull request #4013 from vector-im/feature/bma/a11y_guidelines
Update pull request checklist
2 parents 7e5ec29 + 7ca089b commit 6d91482

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
### Pull Request Checklist
22

3-
<!-- Please read [CONTRIBUTING.md](https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md) before submitting your pull request -->
3+
<!--
4+
Please read [CONTRIBUTING.md](https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md) before submitting your pull request
5+
Depending on the Pull Request content, it can be acceptable if some of the following checkboxes stay unchecked.
6+
-->
47

58
- [ ] Changes has been tested on an Android device or Android emulator with API 21
69
- [ ] UI change has been tested on both light and dark themes
10+
- [ ] Accessibility has been taken into account. See https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#accessibility
711
- [ ] Pull request is based on the develop branch
812
- [ ] Pull request includes a new file under ./changelog.d. See https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#changelog
913
- [ ] Pull request includes screenshots or videos if containing UI changes
1014
- [ ] Pull request includes a [sign off](https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.md#sign-off)
15+
- [ ] You've made a self review of your PR
16+
- [ ] If you have modified the screen flow, or added new screens to the application, you have updated the test [UiAllScreensSanityTest.allScreensTest()](https://github.com/vector-im/element-android/blob/main/vector/src/androidTest/java/im/vector/app/ui/UiAllScreensSanityTest.kt#L73)

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ The string will be removed during the next sync with Weblate.
148148

149149
Please consider accessibility as an important point. As a minimum requirement, in layout XML files please use attributes such as `android:contentDescription` and `android:importantForAccessibility`, and test with a screen reader if it's working well. You can add new string resources, dedicated to accessibility, in this case, please prefix theirs id with `a11y_`.
150150

151+
For instance, when updating the image `src` of an ImageView, please also consider updating its `contentDescription`. A good example is a play pause button.
152+
151153
### Layout
152154

153155
When adding or editing layouts, make sure the layout will render correctly if device uses a RTL (Right To Left) language.

vector/lint.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
<!-- Accessibility -->
2222
<issue id="LabelFor" severity="error" />
2323
<issue id="ContentDescription" severity="error" />
24+
<issue id="SpUsage" severity="error" />
2425

2526
<!-- Layout -->
2627
<issue id="UnknownIdInLayout" severity="error" />
2728
<issue id="StringFormatCount" severity="error" />
2829
<issue id="HardcodedText" severity="error" />
29-
<issue id="SpUsage" severity="error" />
3030
<issue id="ObsoleteLayoutParam" severity="error" />
3131
<issue id="InefficientWeight" severity="error" />
3232
<issue id="DisableBaselineAlignment" severity="error" />

0 commit comments

Comments
 (0)