-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: message and modal accessibility #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that when closing the modal the focus goes back to the top most element in the previous view. Should we be giving focus back to the message itself like we do on web?
Sources/PayPalMessages/Utils/PayPalMessageViewParametersBuilder.swift
Outdated
Show resolved
Hide resolved
Sources/PayPalMessages/Utils/PayPalMessageViewParametersBuilder.swift
Outdated
Show resolved
Hide resolved
Sources/PayPalMessages/Utils/PayPalMessageViewParametersBuilder.swift
Outdated
Show resolved
Hide resolved
Sources/PayPalMessages/Utils/PayPalMessageViewParametersBuilder.swift
Outdated
Show resolved
Hide resolved
## 1.0.0-prerelease.1 (2023-11-22) ### Bug Fixes * correctly init AnyCodable for modal event properties ([#10](#10)) ([d4a0839](d4a0839)) * disable opening modal until message rendered ([#4](#4)) ([3d09576](3d09576)) * ensure modal shared key removed from individual events ([#13](#13)) ([32ae124](32ae124)) * message and modal accessibility improvements ([#7](#7)) ([86320e9](86320e9)) * move credential override off main thread ([#11](#11)) ([b30c2f8](b30c2f8)) * unrecoverable error state after supplying valid client id ([#5](#5)) ([da5fe52](da5fe52)) ### Code Refactoring * expose proxy and remove environment default param ([#3](#3)) ([a8d36d8](a8d36d8)) * log endpoint schema and route changes ([#12](#12)) ([31ba3b5](31ba3b5)) * pass instance_id ([#9](#9)) ([6d0668b](6d0668b)) ### Tests * expand unit tests ([#8](#8)) ([48e6f0f](48e6f0f)) ### Continuous Integration * add workflow_call hook for workflows ([13a0f81](13a0f81)) * initial GitHub Actions setup and test ([#1](#1)) ([43d9ff0](43d9ff0)) * prerelease prep ([#6](#6)) ([12cb440](12cb440))
🎉 This PR is included in version 1.0.0-prerelease.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## 1.0.0-alpha.1 (2024-04-22) ### Features * message and modal close button alternative a11y text ([#28](#28)) ([f017015](f017015)) ### Bug Fixes * correctly init AnyCodable for modal event properties ([#10](#10)) ([d4a0839](d4a0839)) * disable opening modal until message rendered ([#4](#4)) ([3d09576](3d09576)) * ensure modal shared key removed from individual events ([#13](#13)) ([32ae124](32ae124)) * logger uses updated message and modal properties ([#21](#21)) ([6b9e949](6b9e949)) * message and modal accessibility improvements ([#7](#7)) ([86320e9](86320e9)) * move credential override off main thread ([#11](#11)) ([b30c2f8](b30c2f8)) * pass env param to log functions ([#31](#31)) ([610d9e3](610d9e3)) * unrecoverable error state after supplying valid client id ([#5](#5)) ([da5fe52](da5fe52)) ### Code Refactoring * add privacy manifest file and remove tracking IDs ([#30](#30)) ([8400d96](8400d96)) * expose proxy and remove environment default param ([#3](#3)) ([a8d36d8](a8d36d8)) * include default device ID and session ID values ([#25](#25)) ([e34fc94](e34fc94)) * include response details when message failure ([#29](#29)) ([dd1c478](dd1c478)) * log endpoint schema and route changes ([#12](#12)) ([31ba3b5](31ba3b5)) * move stageTag and devTouchpoint options to Environment enum ([#15](#15)) ([d4a9d4a](d4a9d4a)) * pass instance_id ([#9](#9)) ([6d0668b](6d0668b)) * pass message view model dependencies from message view ([#20](#20)) ([9a98326](9a98326)) * placement to pageType and textAlignment to textAlign ([#26](#26)) ([d2ffdd4](d2ffdd4)) * remove currency references ([#14](#14)) ([751c903](751c903)) * rename stage environment value to develop ([#27](#27)) ([83557df](83557df)) * store merchant profile data by client ID and merchant ID ([#19](#19)) ([a502a4f](a502a4f)) ### Tests * expand unit tests ([#8](#8)) ([48e6f0f](48e6f0f)) * expose view model flush method for consistent tests ([#24](#24)) ([9c1406f](9c1406f)) ### Continuous Integration * codesign xcframework build ([90599d0](90599d0)) * fix linting and test coverage ([#17](#17)) ([3eeebea](3eeebea)) * initial GitHub Actions setup and test ([#1](#1)) ([43d9ff0](43d9ff0)) * initial prerelease fixes ([#16](#16)) ([43cffed](43cffed)) * prerelease prep ([#6](#6)) ([12cb440](12cb440))
🎉 This PR is included in version 1.0.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## 1.0.0 (2024-05-14) ### Features * message and modal close button alternative a11y text ([#28](#28)) ([f017015](f017015)) ### Bug Fixes * convert int to string and ensure channel for logger payload ([#32](#32)) ([6794360](6794360)) * correctly init AnyCodable for modal event properties ([#10](#10)) ([d4a0839](d4a0839)) * disable opening modal until message rendered ([#4](#4)) ([3d09576](3d09576)) * ensure modal shared key removed from individual events ([#13](#13)) ([32ae124](32ae124)) * include integration_name with requests ([#34](#34)) ([d5bc8a8](d5bc8a8)) * logger uses updated message and modal properties ([#21](#21)) ([6b9e949](6b9e949)) * message and modal accessibility improvements ([#7](#7)) ([86320e9](86320e9)) * move credential override off main thread ([#11](#11)) ([b30c2f8](b30c2f8)) * pass env param to log functions ([#31](#31)) ([610d9e3](610d9e3)) * unrecoverable error state after supplying valid client id ([#5](#5)) ([da5fe52](da5fe52)) ### Code Refactoring * add privacy manifest file and remove tracking IDs ([#30](#30)) ([8400d96](8400d96)) * expose proxy and remove environment default param ([#3](#3)) ([a8d36d8](a8d36d8)) * include default device ID and session ID values ([#25](#25)) ([e34fc94](e34fc94)) * include response details when message failure ([#29](#29)) ([dd1c478](dd1c478)) * log endpoint schema and route changes ([#12](#12)) ([31ba3b5](31ba3b5)) * move stageTag and devTouchpoint options to Environment enum ([#15](#15)) ([d4a9d4a](d4a9d4a)) * pass instance_id ([#9](#9)) ([6d0668b](6d0668b)) * pass message view model dependencies from message view ([#20](#20)) ([9a98326](9a98326)) * placement to pageType and textAlignment to textAlign ([#26](#26)) ([d2ffdd4](d2ffdd4)) * remove currency references ([#14](#14)) ([751c903](751c903)) * rename stage environment value to develop ([#27](#27)) ([83557df](83557df)) * store merchant profile data by client ID and merchant ID ([#19](#19)) ([a502a4f](a502a4f)) ### Tests * expand unit tests ([#8](#8)) ([48e6f0f](48e6f0f)) * expose view model flush method for consistent tests ([#24](#24)) ([9c1406f](9c1406f)) ### Continuous Integration * codesign xcframework build ([#33](#33)) ([9ef181d](9ef181d)) * fix linting and test coverage ([#17](#17)) ([3eeebea](3eeebea)) * initial GitHub Actions setup and test ([#1](#1)) ([43d9ff0](43d9ff0)) * initial prerelease fixes ([#16](#16)) ([43cffed](43cffed)) * prerelease prep ([#6](#6)) ([12cb440](12cb440))
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Misc. fix (unrelated to A11y audit):
Screenshots
Testing instructions
Xcode > Open Developer Tool > Accessibility Inspector