Skip to content

Commit dd25e8b

Browse files
authored
Merge pull request #4448 from owncloud/feature/info_and_relationships_headings
[a11y] 11.1.3.1a Info and relationships
2 parents 9169d57 + 909486c commit dd25e8b

File tree

8 files changed

+49
-8
lines changed

8 files changed

+49
-8
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,34 @@ ownCloud admins and users.
3232

3333
## Summary
3434

35+
* Bugfix - Shares in non-root are updated correctly: [#4432](https://github.com/owncloud/android/issues/4432)
36+
* Enhancement - Improved accessibility of information and relationships: [#4362](https://github.com/owncloud/android/issues/4362)
3537
* Enhancement - Changed the color of some elements to improve accessibility: [#4364](https://github.com/owncloud/android/issues/4364)
3638
* Enhancement - Improved SearchView accessibility: [#4365](https://github.com/owncloud/android/issues/4365)
3739
* Enhancement - Hardware keyboard support: [#4438](https://github.com/owncloud/android/pull/4438)
3840

3941
## Details
4042

43+
* Bugfix - Shares in non-root are updated correctly: [#4432](https://github.com/owncloud/android/issues/4432)
44+
45+
The items of the "Share" view are updated instantly when create/edit a link or
46+
share with users or groups in a non-root file.
47+
48+
https://github.com/owncloud/android/issues/4432
49+
https://github.com/owncloud/android/pull/4435
50+
51+
* Enhancement - Improved accessibility of information and relationships: [#4362](https://github.com/owncloud/android/issues/4362)
52+
53+
Headings have been added to the following views: Share, Edit/Create Share Link,
54+
Standard Toolbar and Manage Accounts. The filename input field and the two
55+
switches are now linked to their labels. The 'contentDescription' attributes of
56+
the buttons in the Edit/Create Share Link view have also been updated.
57+
58+
https://github.com/owncloud/android/issues/4362
59+
https://github.com/owncloud/android/issues/4363
60+
https://github.com/owncloud/android/issues/4371
61+
https://github.com/owncloud/android/pull/4448
62+
4163
* Enhancement - Changed the color of some elements to improve accessibility: [#4364](https://github.com/owncloud/android/issues/4364)
4264

4365
The color of some UI elements has been changed to meet minimum color contrast

changelog/unreleased/4448

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Enhancement: Improved accessibility of information and relationships
2+
3+
Headings have been added to the following views: Share, Edit/Create Share Link, Standard Toolbar and Manage Accounts.
4+
The filename input field and the two switches are now linked to their labels.
5+
The 'contentDescription' attributes of the buttons in the Edit/Create Share Link view have also been updated.
6+
7+
https://github.com/owncloud/android/issues/4362
8+
https://github.com/owncloud/android/issues/4363
9+
https://github.com/owncloud/android/issues/4371
10+
https://github.com/owncloud/android/pull/4448

owncloudApp/src/main/res/layout/manage_accounts_dialog.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
android:src="@drawable/ic_cross_manage_accounts"
3434
android:layout_marginVertical="13dp"
3535
android:layout_marginStart="13dp"
36+
android:contentDescription="@string/drawer_close"
3637
app:layout_constraintBottom_toBottomOf="parent"
3738
app:layout_constraintStart_toStartOf="parent"
3839
app:layout_constraintTop_toTopOf="parent"
@@ -47,6 +48,7 @@
4748
android:textColor="@color/white"
4849
android:textSize="18sp"
4950
android:textStyle="bold"
51+
android:accessibilityHeading="true"
5052
app:layout_constraintBottom_toBottomOf="parent"
5153
app:layout_constraintEnd_toEndOf="parent"
5254
app:layout_constraintStart_toStartOf="parent"

owncloudApp/src/main/res/layout/owncloud_toolbar.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@
9595
android:theme="@style/ownCloud.Appbar"
9696
android:visibility="gone"
9797
android:layout_marginEnd="@dimen/standard_margin"
98+
android:focusable="true"
99+
android:focusableInTouchMode="false"
100+
android:accessibilityHeading="true"
98101
app:navigationContentDescription="@string/common_back"
99102
app:popupTheme="?attr/actionBarPopupTheme" />
100103
</com.google.android.material.appbar.AppBarLayout>

owncloudApp/src/main/res/layout/share_file_layout.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105
android:text="@string/share_with_user_section_title"
106106
android:textAllCaps="true"
107107
android:textColor="@color/white"
108-
android:textStyle="bold" />
108+
android:textStyle="bold"
109+
android:accessibilityHeading="true"/>
109110

110111
<ImageButton
111112
android:id="@+id/addUserButton"
@@ -159,7 +160,8 @@
159160
android:text="@string/share_via_link_section_title"
160161
android:textAllCaps="true"
161162
android:textColor="@color/white"
162-
android:textStyle="bold" />
163+
android:textStyle="bold"
164+
android:accessibilityHeading="true"/>
163165

164166
<ImageButton
165167
android:id="@+id/addPublicLinkButton"

owncloudApp/src/main/res/layout/share_public_dialog.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
android:layout_height="wrap_content"
1212
android:padding="@dimen/standard_half_padding"
1313
android:text="@string/share_via_link_create_title"
14-
android:textAppearance="@android:style/TextAppearance.Material.DialogWindowTitle" />
14+
android:textAppearance="@android:style/TextAppearance.Material.DialogWindowTitle"
15+
android:accessibilityHeading="true"/>
1516

1617
<ScrollView
1718
android:layout_width="match_parent"
@@ -30,6 +31,7 @@
3031
android:orientation="horizontal">
3132

3233
<TextView
34+
android:labelFor="@+id/shareViaLinkNameValue"
3335
android:layout_width="wrap_content"
3436
android:layout_height="wrap_content"
3537
android:padding="@dimen/standard_half_padding"
@@ -90,6 +92,7 @@
9092

9193
<TextView
9294
android:id="@+id/shareViaLinkPasswordLabel"
95+
android:labelFor="@+id/shareViaLinkPasswordSwitch"
9396
android:layout_width="wrap_content"
9497
android:layout_height="wrap_content"
9598
android:layout_alignParentStart="true"
@@ -280,6 +283,7 @@
280283

281284
<TextView
282285
android:id="@+id/shareViaLinkExpirationLabel"
286+
android:labelFor="@+id/shareViaLinkExpirationSwitch"
283287
android:layout_width="wrap_content"
284288
android:layout_height="wrap_content"
285289
android:layout_alignParentStart="true"
@@ -354,7 +358,7 @@
354358
android:layout_width="match_parent"
355359
android:layout_height="wrap_content"
356360
android:layout_weight="1"
357-
android:contentDescription="shareAddPublicLinkCancelButton"
361+
android:contentDescription="@string/share_cancel_public_link_button"
358362
android:text="@string/share_cancel_public_link_button"
359363
android:theme="@style/Button.Primary" />
360364

@@ -364,7 +368,7 @@
364368
android:layout_width="match_parent"
365369
android:layout_height="wrap_content"
366370
android:layout_weight="1"
367-
android:contentDescription="shareAddPublicLinkConfirmButton"
371+
android:contentDescription="@string/share_confirm_public_link_button"
368372
android:text="@string/share_confirm_public_link_button"
369373
android:theme="@style/Button.Primary" />
370374

owncloudApp/src/main/res/layout/share_public_link_item.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
<LinearLayout
2323
android:layout_width="match_parent"
2424
android:layout_height="wrap_content"
25-
android:longClickable="true"
2625
android:orientation="horizontal"
2726
android:weightSum="1">
2827

owncloudApp/src/main/res/layout/share_user_item.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
android:layout_width="match_parent"
2727
android:layout_height="wrap_content"
2828
android:orientation="horizontal"
29-
android:weightSum="1"
30-
android:longClickable="true">
29+
android:weightSum="1">
3130

3231
<ImageView
3332
android:layout_width="wrap_content"

0 commit comments

Comments
 (0)