Skip to content

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

@cypress
Copy link

cypress bot commented Nov 5, 2024

screen-builder    Run #1705

Run Properties:  status check passed Passed #1705  •  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 #1705
Run duration 09m 22s
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 366
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

@agustinbusso agustinbusso changed the base branch from release-2024-fall to release-2025-winter January 10, 2025 18:04
@processmaker-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@ryancooley ryancooley merged commit 7dd6311 into release-2025-winter Jan 23, 2025
16 checks passed
@ryancooley ryancooley deleted the task/FOUR-19875 branch January 23, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants