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: (CXSPA-9005) fix ng-select options issue - <y of x> is conveyed twice #19844

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

uroslates
Copy link
Contributor

@uroslates uroslates requested a review from a team as a code owner January 9, 2025 09:14
@github-actions github-actions bot marked this pull request as draft January 9, 2025 09:14
@uroslates uroslates marked this pull request as ready for review January 9, 2025 09:16
@github-actions github-actions bot marked this pull request as draft January 9, 2025 09:16
@uroslates uroslates marked this pull request as ready for review January 9, 2025 09:17
Copy link
Contributor

github-actions bot commented Jan 9, 2025

Merge Checks Failed

Please push a commit to re-trigger the build. 
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`

Copy link

cypress bot commented Jan 9, 2025

spartacus    Run #46667

Run Properties:  status check passed Passed #46667  •  git commit 170e748acf ℹ️: Merge 0f3aaf327e7e71f0d705b254688c3ac6079df0de into e7b7e653ec7e07b35787b6402c39...
Project spartacus
Branch Review feature/CXSPA-9005
Run status status check passed Passed #46667
Run duration 04m 07s
Commit git commit 170e748acf ℹ️: Merge 0f3aaf327e7e71f0d705b254688c3ac6079df0de into e7b7e653ec7e07b35787b6402c39...
Committer Uros Lates
View all properties for this run ↗︎

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

@github-actions github-actions bot marked this pull request as draft January 13, 2025 11:04
@uroslates uroslates marked this pull request as ready for review January 13, 2025 11:05
}
);
});
options.forEach((option: HTMLOptionElement) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need a feature toggle here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Stan for the heads up & catching this one!
I've reiterated over with Caine and code is updated now.

@github-actions github-actions bot marked this pull request as draft January 13, 2025 13:02
@uroslates uroslates marked this pull request as ready for review January 13, 2025 16:06
@uroslates
Copy link
Contributor Author

Changed the implementation - setting a11yNgSelectOptionsCount to false (per default) will cause ng-select options ariaLabels to working as expected. Marked all relevant directive methods as depricated. Hopefully the depricated code (including the flag) would be removed in next major release (undoing part of old directive which is now introducing issue) - making everything work normal.

@uroslates uroslates marked this pull request as ready for review January 14, 2025 09:50
a11yNgSelectOptionsCount: true,
/**
* Defaults to false cause ng-select options ariaLabels are working as expected
* since Spartacus 2211.33
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets also reference the issue CX-9005 here and in feature-toggles.ts so anybody curious can reference the discussion about this flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated comment with reference to the related issue.

@github-actions github-actions bot marked this pull request as draft January 15, 2025 09:34
@uroslates uroslates requested a review from Zeyber January 15, 2025 09:42
@uroslates uroslates marked this pull request as ready for review January 15, 2025 09:42
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.

4 participants