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

feature(storefront): BCTHEME-134 Incorrect focus order on PDPs #1771

Merged
merged 1 commit into from Aug 26, 2020

Conversation

yurytut1993
Copy link
Contributor

What?

Now when you tabbing through page product images fill receive focus firstly before focusable items in product details block (for example write review link).

To do this I moved block with images above details block in html. Because of using floats in css, changing block position didn't affect visual presentation of layout. But on mobile I should have details block higher than images block. So I have to use flex and change the order of details block to set him at the top using order: -1. Tabbing on mobile is not necessary, so order on mob devices might be not important.
Alternative variant - have 2 similar details html blocks - one above images block and one under. On mobile version will be active above block, and on desktop under block

Tickets / Documentation

Ticket

Screenshots (if appropriate)

layout with wrong order
layout_with_wrong_order

correct order demo
correct_focus_order.zip

@bigbot
Copy link

bigbot commented Aug 6, 2020

Autotagging @bigcommerce/storefront-team @davidchin

@BC-tymurbiedukhin BC-tymurbiedukhin merged commit eacef3c into bigcommerce:master Aug 26, 2020
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.

None yet

4 participants