Skip to content

fix: (CXSPA-12811) Button_ Focus lost on invoking UI.#21565

Open
StanislavSukhanov wants to merge 8 commits into
developfrom
fix/CXSPA-12811-Button-Focus-lost-on-invoking-UI
Open

fix: (CXSPA-12811) Button_ Focus lost on invoking UI.#21565
StanislavSukhanov wants to merge 8 commits into
developfrom
fix/CXSPA-12811-Button-Focus-lost-on-invoking-UI

Conversation

@StanislavSukhanov

Copy link
Copy Markdown
Contributor

@StanislavSukhanov StanislavSukhanov requested review from a team as code owners May 29, 2026 12:34
@github-actions github-actions Bot marked this pull request as draft May 29, 2026 12:34
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review May 29, 2026 12:35
@cypress

cypress Bot commented May 29, 2026

Copy link
Copy Markdown

spartacus    Run #53845

Run Properties:  status check passed Passed #53845  •  git commit 4523196e34 ℹ️: Merge dbb8309f3d379e15a3879c429df777e31dd27f73 into a5d725e46740a88a7a1bdf4de13b...
Project spartacus
Branch Review fix/CXSPA-12811-Button-Focus-lost-on-invoking-UI
Run status status check passed Passed #53845
Run duration 04m 16s
Commit git commit 4523196e34 ℹ️: Merge dbb8309f3d379e15a3879c429df777e31dd27f73 into a5d725e46740a88a7a1bdf4de13b...
Committer Stanislav Sukhanov
View all properties for this run ↗︎

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

@github-actions github-actions Bot marked this pull request as draft June 10, 2026 08:57
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review June 10, 2026 09:00
@github-actions github-actions Bot marked this pull request as draft June 10, 2026 11:33
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review June 10, 2026 11:33
@github-actions github-actions Bot marked this pull request as draft June 23, 2026 07:41
@Zeyber Zeyber marked this pull request as ready for review June 23, 2026 07:41

@Zeyber Zeyber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This way of handling the focus change seems fine to me given how much DOM changing happens in this particular situation. We'd just need to feature toggle it of course as always since we changed the dialog method used.

* If none exists, a temporary `tabindex="-1"` is added to the host so it can
* receive programmatic focus without joining the tab order.
*/
protected restoreFocus(element: HTMLElement): void {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm wondering if this method is rather generic, it could be nice to have in the dialog service as well with a bit more of a descriptive method name for this particular case (ie. user modifying the url). Then it can be reused in other similar cases.

…t-on-invoking-UI' into fix/CXSPA-12811-Button-Focus-lost-on-invoking-UI
@github-actions github-actions Bot marked this pull request as draft July 2, 2026 11:39
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review July 2, 2026 13:17
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

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"`

@github-actions github-actions Bot marked this pull request as draft July 2, 2026 13:18
@StanislavSukhanov StanislavSukhanov marked this pull request as ready for review July 2, 2026 13:19
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