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

Task/FOUR-19875: aria-label property is the same in all options in the select list component generating unexpected behaviors for screen readers #1769

Open
wants to merge 3 commits into
base: release-2024-fall
Choose a base branch
from

Conversation

agustinbusso
Copy link
Contributor

@agustinbusso agustinbusso commented Nov 5, 2024

Issue & Reproduction Steps

Steps to Reproduce:

  • Create a new screen
  • Use the Select List component in the screen
  • Configure the aria-label in Advanced property

Current Behavior:
The same aria-label is repeated for each option in the Select List. This is causing that the screen readers for disabilities reads the label question every time. This behavior is unexpected for the customer.

Expected Behavior:

ProcessMaker should allow configure the aria-label for each option in the aria-label property. One for the label and one for each option in the Select List component for the screen readers.

Solution

  • Added area label option for checkbox renderAs mode, for provide data, request data, data connectors and collections.

How to Test

Test the steps above

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

ci:vue-form-elements:task/FOUR-19875

Copy link

cypress bot commented Nov 5, 2024

screen-builder    Run #1667

Run Properties:  status check passed Passed #1667  •  git commit 3cc49e2a9e: Task/FOUR-19875: aria-label property is the same in all options in the select li...
Project screen-builder
Branch Review task/FOUR-19875
Run status status check passed Passed #1667
Run duration 09m 01s
Commit git commit 3cc49e2a9e: Task/FOUR-19875: aria-label property is the same in all options in the select li...
Committer Agustín Busso
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 19
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 360
View all changes introduced in this branch ↗︎


<label v-if="renderAs === 'checkbox'" for="aria-label">{{ $t('Aria Label') }}</label>
<b-form-input v-if="renderAs === 'checkbox'" id="aria-label" v-model="optionAriaLabel" placeholder="Aria Label Property" data-cy="inspector-options-aria-label" />
<small v-if="renderAs === 'checkbox'" class="form-text text-muted mb-3">{{ $t('Enter the property name for the aria label from the Request data variable.') }}</small>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this translation label need to be registered in the core project, thanks

<label v-if="renderAs === 'checkbox'" for="aria-label">{{ $t('Aria Label') }}</label>
<mustache-helper v-if="renderAs === 'checkbox'" />
<b-form-input v-if="renderAs === 'checkbox'" id="aria-label" v-model="optionAriaLabel" data-cy="inspector-datasource-aria-label"/>
<small v-if="renderAs === 'checkbox'" class="form-text text-muted mb-3">{{ $t('Aria label for accessibility support.') }}</small>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this label need to be registered in the core project, thanks

@agustinbusso
Copy link
Contributor Author

Related PRs:
Screen Builder
Vue Form Elements
Core

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

Successfully merging this pull request may close these issues.

2 participants