IceCubesApp/Packages/DesignSystem/Sources/DesignSystem
Chris Kolbu 9e347c75b9
Timeline & Timeline detail accessibility uplift (#1323)
* Improve accessibility of StatusPollView

Previously, this view did not provide the proper context to indicate that it represented a poll.

Now, we’ve added
- A container that will stay “Active poll” or “Poll results” when the cursor first hits one of the options;
- A prefix to say “Option X of Y” before each option;
- A Selected trait on the selected option(s), if present
- Consolidating and adding an `.updatesFrequently` trait to the footer view with the countdown.

* Add poll description in StatusRowView combinedAccessibilityLabel

This largely duplicates the logic in `StatusPollView`.

* Improve accessibility of media attachments

Previously, the media attachments without alt text would not show up in the consolidated `StatusRowView`, nor would they be meaningfully explained on the status detail screen.

Now, they are presented with their attachment type.

* Change accessibilityRepresentation of AppAcountsSelectorView

* Change Notifications tab title view accessibility representation to Menu

Previously it would present as a button

* Hide layout `Rectangle`s from accessibility

* Consolidate `StatusRowDetailView` accessibility representation

* Improve readability of Poll accessibility label

* Ensure poll options don’t present as interactive when the poll is finished

* Improve accessibility of StatusRowCardView

Previously, it would present as four separate elements, including an image without a description, all interactive, none with an interactive trait.

Now, it presents as a single element with the `.link` trait

* Improve accessibility of StatusRowHeaderView

Previously, it had no traits and no actions except inherited ones.

Now it presents as a button, triggering its primary action.

It also has custom actions corresponding to its context menu

* Avoid applying the StatusRowView custom actions to every view when contained

* Provide context for the application name

* Add pauses to StatusRowView combinedAccessibilityLabel

* Hide `TimelineView.scrollToTopView` from accessibility

* Set appropriate font style on Notification header

After the change the Text needed a `.headline` style to match the prior appearance.

* Fix bug in accessibilityRepresentation of TimelineView nav bar title

Previously, it would not display the proper label for .remoteLocal filter options.

* Ensure that pop-up button nav bar titles are interactive

* Ensure TextView responds to Environment.sizeCategory

This resolves #1309

* Fix button

---------

Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
2023-03-28 18:48:58 +02:00
..
Resources Make max width more consistent on iPad fix #236 2023-01-29 08:14:08 +01:00
Views Timeline & Timeline detail accessibility uplift (#1323) 2023-03-28 18:48:58 +02:00
AccountExt.swift Various fixes + fix Explore navigation 2023-03-02 20:15:07 +01:00
ColorSet.swift Adjust neon dark secondary color 2023-01-28 18:51:25 +01:00
DesignSystem.swift Make secondary column available on any size + add a toggle + faster macOS window resize 2023-02-21 13:37:31 +01:00
Font.swift SwiftFormat 2023-03-13 13:38:28 +01:00
FontPicker.swift Fix theme not being applied live on status row close #961 2023-02-20 13:00:50 +01:00
SceneDelegate.swift Updated to resolve all possible Sendability warnings from Swift 6 compatibility mode. (#1072) 2023-02-27 06:39:07 +01:00
SFSymbols.swift SwiftFormat 2023-03-13 13:38:28 +01:00
Theme.swift Settings: Add line spacing option which apply to only posts content for now 2023-03-26 18:51:15 +02:00
ThemeApplier.swift Swift format 2023-01-30 07:27:06 +01:00