New issue
Advanced search Search tips

Issue 794195 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 1
Type: Bug



Sign in to add a comment

Focus the first primary enabled button on sheet

Project Member Reported by rouslan@chromium.org, Dec 12 2017

Issue description

Chrome Version       : 64.0.3282.14

What steps will reproduce the problem?
1. Open https://googlechrome.github.io/samples/paymentrequest/dynamic-shipping/
2. Click "Buy" on page.

Expected: The keyboard focus should be on the "Choose" button for the shipping address.

Observed: The keyboard focus is on "Cancel" button, which cancels the payment.

3. Click "Choose" and select a shipping address.

Expected: The "Pay" button should be enabled and have keyboard focus.

Observed: The "Cancel" button still has the focus.

UserAgentString: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.14 Safari/537.36



 
In sub sheets, the currently selected item should be focused instead of "Cancel Payment".

For example, in the shipping address list sheet, the currently selected shipping address should be focused. If nothing is selected yet, the top address should be focused, because that's the most frecent one.

If a sub sheet does not have any data, then the button for adding data should be focused. For example, "Add card" or "Add shipping address".

If a sub sheet is display only, i.e., the order summary, then the "Back" button should be focused instead of "Cancel Payment".

Sign in to add a comment