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

Fix map accessibility issue - Map bottom position missing label #7763

Merged
merged 3 commits into from Apr 6, 2021

Conversation

ahukkanen
Copy link
Contributor

@ahukkanen ahukkanen commented Mar 29, 2021

🎩 What? Why?

Right now we have a bottom position for the map indicated by an anchor element <a>. It is missing a label which is required for all <a> elements. This changes the element to a <div> which doesn't require a label.

This also makes sure that the bottom element ID is unique when there are multiple maps on the same page.

Also, I added accessibility + HTML validation tests for the map specs. They are now also testing the case with two separate maps on the same page.

📌 Related Issues

Testing

Run the modified map specs.

📋 Checklist

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

@ahukkanen ahukkanen changed the title Fix map accessibility issue - Bottom position missing label Fix map accessibility issue - Map bottom position missing label Mar 29, 2021
@mrcasals mrcasals added type: feature PRs or issues that implement a new feature module: core labels Apr 6, 2021
@mrcasals mrcasals merged commit 2ac7bc4 into decidim:develop Apr 6, 2021
@ahukkanen ahukkanen deleted the fix/map-bottom-missing-label branch April 6, 2021 13:13
entantoencuanto added a commit that referenced this pull request Apr 6, 2021
* develop:
  Census access codes exportation flow (#7756)
  Show attachment menu as active only when subitem is active (#7774)
  Add Voting Ballot Styles (#7779)
  Fix map accessibility issue - Map bottom position missing label (#7763)
  Update README.adoc (#7687)
  Fix single initiative type (#7667)
  Enable Proposals Cell to take into account machine translations (#7629)
  Change order by weight in subassemblies (#7620)
  Add categories parent filter to API (#7609)
  Mockup design for Remaining time in voting (#7597)
  Upgrade to Rails 5.2.5 (#7762)
  Generate votings access codes (#7704)
entantoencuanto added a commit that referenced this pull request Apr 7, 2021
* develop:
  Revert "Fix single initiative type" (#7800)
  Census access codes exportation flow (#7756)
  Show attachment menu as active only when subitem is active (#7774)
  Add Voting Ballot Styles (#7779)
  Fix map accessibility issue - Map bottom position missing label (#7763)
  Update README.adoc (#7687)
  Fix single initiative type (#7667)
  Enable Proposals Cell to take into account machine translations (#7629)
  Change order by weight in subassemblies (#7620)
  Add categories parent filter to API (#7609)
  Mockup design for Remaining time in voting (#7597)
  Upgrade to Rails 5.2.5 (#7762)
  Generate votings access codes (#7704)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: core type: feature PRs or issues that implement a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants