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
feat: improve HeaderSecondLevel a11y visibility based on scroll (#408)
## Short description
This pull request introduces enhancements to the `HeaderSecondLevel`,
focusing on improving accessibility and adding new animated reactions
## List of changes proposed in this pull request
- Modified the `importantForAccessibility` property of the `View`
component to use the new state, ensuring that it updates correctly when
the scroll position changes.
- Implemented `useAnimatedReaction` to update the
`importantForAccessibility` state based on the scroll offset, enhancing
the component's responsiveness to user interactions.
## How to test
Using a real device 📱, check each `HeaderSecondLevel` screen with
TalkBack accessibility tool
## Preview
| Before | Now |
|--------|--------|
| <video
src="https://github.com/user-attachments/assets/3b75637c-7eb2-4dab-bcd1-b0c74226dc64"/>
| <video
src="https://github.com/user-attachments/assets/d15403fd-99d5-4ae2-80fe-5724a0924e38"/>
|
> [!TIP]
> The navigation between actions shown in the video is performed using
swipe gestures with TalkBack enabled, but you can also verify its
functionality by tapping
Co-authored-by: Damiano Plebani <[email protected]>
0 commit comments