- From: James Craig <jcraig@apple.com>
- Date: Fri, 4 Dec 2015 18:45:47 -0800
- To: Joseph Scheuhammer <clown@alum.mit.edu>
- Cc: Alexander Surkov <surkov.alexander@gmail.com>, James Nurthen <james.nurthen@oracle.com>, W3C WAI Protocols & Formats <public-pfwg@w3.org>
> On Dec 4, 2015, at 12:31 PM, Joseph Scheuhammer <clown@alum.mit.edu> wrote: > > On 2015-12-04 8:07 AM, Alexander Surkov wrote: >> I agree that ARIA would benefit of having a way to provide the semantics of a default button. I would replace though a long aria-primaryaction name on short aria-default. That would look like: >> >> <div role='button' aria-default> >> >> The naming is similar to MSAA's STATE_SYSTEM_DEFAULT state exposed on default buttons. > > Similarly, ATK_STATE_DEFAULT [1] and ATSPI_STATE_IS_DEFAULT [2]. > > OS X has an AXDefaultButton property, but, there, it's a property of the AXDialog, not the button itself. (Note: determined via the Accessibility Inspector). The ARIA equivalent would be an IDREF attr on a dialog, pointing to one of the contained buttons. <div role="dialog" aria-labelledby="label_text" aria-default="cancel_button"> <h1 id="label_text">Are you sure you want to delete your irreplaceable photos?</h1> <button>Delete</button> <button id="cancel_button">Cancel</button> </div>
Received on Saturday, 5 December 2015 02:46:17 UTC