RE: ARIA 1.1: primary button attribute proposal

> I'm concerned that the renderer for the dialog will probably not have the
idref of the button available. 
Would it be possible, in that case, for the renderer of the button to apply
the attribute to the containing dialog?

-----Original Message-----
From: James Nurthen [mailto:james.nurthen@oracle.com] 
Sent: Friday, December 4, 2015 6:55 PM
To: James Craig <jcraig@apple.com>
Cc: Joseph Scheuhammer <clown@alum.mit.edu>; Alexander Surkov
<surkov.alexander@gmail.com>; W3C WAI Protocols & Formats
<public-pfwg@w3.org>
Subject: Re: ARIA 1.1: primary button attribute proposal

I'm concerned that the renderer for the dialog will probably not have the
idref of the button available. 

On Dec 4, 2015, at 18:45, James Craig <jcraig@apple.com> wrote:

>> 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 Monday, 7 December 2015 08:24:44 UTC