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

Closes #1273 Closes #3848: Allow multiple select menus on the same page #1387

Open
wants to merge 81 commits into
base: main
Choose a base branch
from

Conversation

RyanDool
Copy link

@RyanDool RyanDool commented Mar 8, 2022

Description

This change makes unique IDs for each select element and adds a reference to that unique ID in the associated label element.

Related Issues

Closes #1273
Closes #3848

How to test

  1. Enable the Quickstart select menu module
  2. Add two new "select menu" blocks on the same page
  3. Operate each block independently
  4. Inspect to observe 'for' element on the label and 'id' on the select are the same

Previous reference

See https://user-images.githubusercontent.com/1023167/169171863-e881d394-b837-46d6-9494-bf07c16b4419.mov

Types of changes

Arizona Quickstart (install profile, custom modules, custom theme)

  • Patch release changes
    • Bug fix
    • Accessibility, performance, or security improvement
    • Critical institutional link or brand change
  • Minor release changes
    • New feature
    • Breaking or visual change to existing behavior
    • Non-critical brand change
    • New internal API or API improvement with backwards compatibility
    • Risky or disruptive cleanup to comply with coding standards
    • High-risk or disruptive change (requires upgrade path, risks regression, etc.)
  • Other or unknown

Drupal core

  • Patch release changes
    • Security update
    • Patch level release (non-security bug-fix release)
    • Patch removal that's no longer necessary
  • Minor release changes
    • Major or minor level update
  • Other or unknown

Drupal contrib projects

  • Patch release changes
    • Security update
    • Patch or minor level update
    • Add new module
    • Patch removal that's no longer necessary
  • Minor release changes
    • Major level update
  • Other or unknown

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

smayden and others added 25 commits May 18, 2022 14:26
…exity (#1345)

Co-authored-by: Joe Parsons <[email protected]>
Co-authored-by: Dana Hertzberg <[email protected]>
…reaking az_global_footer install on migrated sites. (#1391)

* Fixes #1385: Add patch for media_migation module issue breaking az_global_footer install on migrated sites.
@trackleft trackleft changed the title assign array and key value intstead of empty array Closes #1273 Allow multiple select menus on the same page. May 18, 2022
@trackleft
Copy link
Member

trackleft commented May 23, 2022

This resolves the issue as it stands, but we should look through it to remove any unneeded code for the fix to work. or decide whether to use data attribute or an ID, but not both.

Best practice would probably be to use the data attributes for this, since ID's tend to change with big pipe/caching/lazy loading of blocks.

@joeparsons joeparsons added needs discussion Further discussion required to determine requirements bug Something isn't working enhancement New feature or request labels Aug 2, 2023
@joeparsons joeparsons marked this pull request as ready for review August 4, 2023 17:57
@joeparsons joeparsons requested a review from a team as a code owner August 4, 2023 17:57
@joeparsons joeparsons removed the needs discussion Further discussion required to determine requirements label Aug 4, 2023
@danahertzberg
Copy link
Contributor

@RyanDool Looks like there was some review on this one if you could take a look again, please. Thanks!

@danahertzberg
Copy link
Contributor

Consider adding this issue into this PR as well
#3848

@danahertzberg danahertzberg changed the title Closes #1273 Allow multiple select menus on the same page. Closes #1273 Closes #3848: Allow multiple select menus on the same page Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility bug Something isn't working enhancement New feature or request
Projects
Status: Needs review