Repository navigation
fix: Region Modal / Region Popover element focus & z-index - #2809
Merged
Merged
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
hellofanny
marked this pull request as ready for review
April 28, 2025 19:46
hellofanny
requested review from
eduardoformiga,
lariciamota and
lucasfp13
and removed request for
a team and
eduardoformiga
April 28, 2025 19:46
3 tasks
lucasfp13
reviewed
Apr 28, 2025
lucasfp13
left a comment
Contributor
There was a problem hiding this comment.
Left a suggestion that, if agreed, all occurrences should be changed
lucasfp13
approved these changes
Apr 29, 2025
lariciamota
approved these changes
Apr 29, 2025
lariciamota
left a comment
Contributor
There was a problem hiding this comment.
Tested the mentioned flows and they are working as expected!
lariciamota
pushed a commit
that referenced
this pull request
May 8, 2025
## What's the purpose of this pull request? 1. Sets input focus on `RegionModal` 2. Sets input focus on `RegionPopover` 3. Fix Popover` z-index` priority ## How it works? 1. When opening the `RegionPopover`, if no zip code set the focus should be on the input field instead of the closing button. <img width="500" alt="image" src="https://github.com/user-attachments/assets/0c025d56-bdb3-43f9-95c3-6e677e8379b5" /> 2. When opening the `RegionModal`, the focus should be on the input field instead of the closing button. <img width="500" alt="image" src="https://github.com/user-attachments/assets/b458b995-f30c-4c4f-a6c3-e9fc3553953d" /> 3. Popover should be under the `Navbar` head when scrolling. <img width="500" alt="image" src="https://github.com/user-attachments/assets/d202b739-d1b8-4db8-b2d2-ce4d1a0d2d3a" /> ## How to test it? Run the project locally or use the [preview link ](https://storeframework-cm652ufll028lmgv665a6xv0g-fw7dvhgml.b.vtex.app) 1. If the Popover appears, the initial focus should be on the input field 1.a scroll the page, the popover should appear under the Navbar header. 3. Click to edit zip code, when the `RegionModal` appears, the focus should be on the input field ### Starters Deploy Preview vtex-sites/faststoreqa.store#784
lariciamota
pushed a commit
that referenced
this pull request
May 12, 2025
## What's the purpose of this pull request? 1. Sets input focus on `RegionModal` 2. Sets input focus on `RegionPopover` 3. Fix Popover` z-index` priority ## How it works? 1. When opening the `RegionPopover`, if no zip code set the focus should be on the input field instead of the closing button. <img width="500" alt="image" src="https://github.com/user-attachments/assets/0c025d56-bdb3-43f9-95c3-6e677e8379b5" /> 2. When opening the `RegionModal`, the focus should be on the input field instead of the closing button. <img width="500" alt="image" src="https://github.com/user-attachments/assets/b458b995-f30c-4c4f-a6c3-e9fc3553953d" /> 3. Popover should be under the `Navbar` head when scrolling. <img width="500" alt="image" src="https://github.com/user-attachments/assets/d202b739-d1b8-4db8-b2d2-ce4d1a0d2d3a" /> ## How to test it? Run the project locally or use the [preview link ](https://storeframework-cm652ufll028lmgv665a6xv0g-fw7dvhgml.b.vtex.app) 1. If the Popover appears, the initial focus should be on the input field 1.a scroll the page, the popover should appear under the Navbar header. 3. Click to edit zip code, when the `RegionModal` appears, the focus should be on the input field ### Starters Deploy Preview vtex-sites/faststoreqa.store#784
lariciamota
added a commit
that referenced
this pull request
May 13, 2025
## What's the purpose of this pull request? Feature branch for the Delivery Promise feature - phase 1 (navigation based on shopper location). - #2708 - #2728 - #2739 - #2745 - #2749 - #2750 - #2768 - #2772 - #2775 - #2809 - #2817 - #2824 - #2835 ## How it works? ## How to test it? ### Starters Deploy Preview ## References - [Jira epic](https://vtex-dev.atlassian.net/browse/SFS-1696) ## Checklist - [ ] For documentation changes, ping `@Mariana-Caetano` to review and update (Or submit a doc request) - [ ] TODO: Request Doc for PopOver - [ ] TODO: Remind to run cms sync in the default account when the feature branch is merged since new section was added. (And add the new section in the admin!) --------- Co-authored-by: Lucas Feijó <[email protected]> Co-authored-by: Fanny Chien <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the purpose of this pull request?
RegionModalRegionPopoverz-indexpriorityHow it works?
RegionPopover, if no zip code set the focus should be on the input field instead of the closing button.RegionModal, the focus should be on the input field instead of the closing button.Navbarhead when scrolling.How to test it?
Run the project locally or use the preview link
1.a scroll the page, the popover should appear under the Navbar header.
RegionModalappears, the focus should be on the input fieldStarters Deploy Preview
https://github.com/vtex-sites/faststoreqa.store/pull/784