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
Should show() be renamed? #127
Comments
@msporny said:
|
Well, show() in this case is a request to the payment mediator (e.g. browser) to show details of the transaction and the intersection of supported payment methods. So as of right now, you would never run into a situation where show() didn't show something explicit. |
@zkoch wrote:
What if you're blind but can hear (audio interface)? What if you're blind and can't hear (braille text interface)? What if there is nothing to show (all selections can be made automatically based on user preferences)? |
Even if that is a possibility, from that it does not follow that the method ought to be renamed. In those cases, I would think the As far what the resulting user experience is for an end user in a screen reader or other AT, of course their SR/AT is going to present the dialog to them in a non-visual way, and so “show” is simply shorthand for “present something to the user”—in a similar way to the convention that say, telling a user to “press the Foo button” in a software UI doesn’t mean a physical button has somehow been created for them to work with, and that they have to actually “press” it in the same way they do a physical button (that is, by actually physically pushing the button down their finger so that it physically moves down)… |
We don't have any users of this API yet, rather we're still in the design phase. That suggests to me that picking something that is even just marginally better is a good idea. We don't have to settle for "fine" just yet.
I think another word can convey the necessary shorthand without the drawbacks stated in this thread. For example, |
I think show() is ok (and isn't necessarily visual for all definitions) but there may be room for improvement. The spec says "The show method is called when the page wants to begin user interaction for the payment request." Some other ideas that come to mind:
Ian |
Again, closed without the final decision being clearly documented. |
The decision is to not change anything at this time. |
In TAG review @triblondon said:
The text was updated successfully, but these errors were encountered: