Skip to content
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

chore: [IOPAE-1744,IOPAE-1749] Remove transparent header to solve accessibility problems #6692

Merged
merged 9 commits into from
Feb 17, 2025

Conversation

adelloste
Copy link
Member

Short description

This PR removes the transparent header to solve accessibility problems

details

Android
file.mp4

List of changes proposed in this pull request

  • Removed transparent prop from useHeaderSecondLevel
  • Fixed accessibility problem on ServiceHeader: now title label is announced as a header
  • Refactored ServiceActionsProps
  • Extracted getActionsProps function from ServiceDetailsScreen

How to test

Using the screen reader make sure the header is accessible and actions are announced correctly

@adelloste adelloste added the IO-Enti e Servizi IO - Enti e Servizi label Feb 6, 2025
Copy link
Contributor

github-actions bot commented Feb 6, 2025

Jira Pull Request Link

This Pull Request refers to Jira issues:

Copy link
Contributor

github-actions bot commented Feb 6, 2025

PR Title Validation for conventional commit type

All good! PR title follows the conventional commit type.

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

Attention: Patch coverage is 9.43396% with 48 lines in your changes missing coverage. Please review.

Project coverage is 49.49%. Comparing base (b1cc73f) to head (af47b3b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
.../services/details/screens/ServiceDetailsScreen.tsx 3.84% 25 Missing ⚠️
...tails/components/ServiceDetailsScreenComponent.tsx 8.00% 23 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6692      +/-   ##
==========================================
+ Coverage   46.15%   49.49%   +3.33%     
==========================================
  Files        1424     1451      +27     
  Lines       30186    30820     +634     
  Branches     6768     6939     +171     
==========================================
+ Hits        13933    15255    +1322     
+ Misses      16223    15531     -692     
- Partials       30       34       +4     
Files with missing lines Coverage Δ
...ures/services/common/components/ServicesHeader.tsx 100.00% <ø> (ø)
...rvices/common/components/ServicesHeaderSection.tsx 100.00% <ø> (ø)
.../institution/screens/InstitutionServicesScreen.tsx 74.57% <100.00%> (-0.43%) ⬇️
...tails/components/ServiceDetailsScreenComponent.tsx 20.75% <8.00%> (+3.10%) ⬆️
.../services/details/screens/ServiceDetailsScreen.tsx 5.47% <3.84%> (+1.31%) ⬆️

... and 127 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1cc73f...af47b3b. Read the comment docs.

@adelloste adelloste added this pull request to the merge queue Feb 17, 2025
Merged via the queue into master with commit 4359b93 Feb 17, 2025
22 checks passed
@adelloste adelloste deleted the IOPAE-1744-IOPAE-1749-accessibility-improvements branch February 17, 2025 16:56
github-merge-queue bot pushed a commit that referenced this pull request Feb 18, 2025
…ovements (#6698)

This PR depends on #6692

## Short description
This PR fixes minor accessibility issues

## List of changes proposed in this pull request
- Removed unnecessary `accessibilityLabel` prop
- Added `accessibilityHint` prop to FiscalCode

## How to test
Enable the screen reader and navigate to the service details screen.
Check that the metadata are announced correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Activities related to accessibility IO-Enti e Servizi IO - Enti e Servizi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants