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

[Backport 2024.02.xx] #10158 painless accessibility improvements (#10159) #10547

Merged

Conversation

allyoucanmap
Copy link
Contributor

Description

Tiny changes that improve accessibility. Should hopefully not take longer than a minute to review.

What kind of change does this PR introduce?

  • Bugfix

Issue

What is the current behavior?

#10158

Bad Lighthouse Accessibility Score

What is the new behavior?

Better Lighthouse Accessibility Score through:

  • Setting Document language
  • Fixing a heading that should be a div
  • providing a logo with an alt tag
  • linking scale label with its form element
  • enabling browser zoom

Breaking change

Does this PR introduce a breaking change?

  • No

Other useful information

Too much Zoom does seem to break the layout, but handing that responsibility to the end user is more accessible for people who need larger controls than
disabling it. Map zoom is unaffected, and since using browser zoom enlarges map controls, users who tried zooming
into the map using browser zoom should be able to notice the actual controls and recover from their mistake.

…ns-it#10159)

* geosolutions-it#10158: set HTML document language

On Behalf of DB Systel

* geosolutions-it#10158: re-enable browser zoom

Too much Zoom does seem to break the layout, but handing that responsibility to the end user is more accessible than
disabling it. Map zoom is unaffected, and since using browser zoom enlarges map controls, users who tried zooming
into the map using browser zoom should be able to notice the actual controls and recover from their mistake.

On Behalf of DB Systel

* geosolutions-it#10158: Tiny Accessibility Fixes

- Convert heading that, semantically, should not be a heading, to a div
- correctly assign label to scalebox
- add alt tag to attribution logo

On Behalf of DB Systel

* geosolutions-it#10158: set HTML document language once per mount/update

As requested, the document language is now set when the component is mounted or the language is changed instead of with every rerender.

---------

Co-authored-by: Florian Kellner <florian.fl.kellner@deutschebahn.com>
@tdipisa tdipisa merged commit a4e4f36 into geosolutions-it:2024.02.xx Sep 16, 2024
6 checks passed
@tdipisa
Copy link
Member

tdipisa commented Sep 16, 2024

@ElenaGallo tests on QA for this need to be performed once deployed.

@ElenaGallo
Copy link
Contributor

Test passed on QA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WCAG Accessibility Improvements - Low Hanging Fruits
4 participants