Hi Jean-Pierre

Using HTML IDs is awkward in TiddlyWiki because of the way that fragments of 
HTML can be displayed more than once. But it is also possible to nest the 
select element inside the label element:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#advanced_select_with_multiple_features

For example:

<label>
This is the label
<$select tiddler=<<qualify 'select-demo'>> default='HelloThere'>
<$list filter='[all[shadows+tiddlers]tags[]sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>
</label>

Best wishes

Jeremy

--
Jeremy Ruston
[email protected]
https://jermolene.com

> On 21 Apr 2021, at 11:04, Jean-Pierre Rivière <[email protected]> 
> wrote:
> 
> As far as WCAG 2.1 is concerned, a "select" elements should better have an 
> "id" tag in order that a "label" element could point to it witg its "for" 
> tag. Alternatives are a "title" tag or WAI-ARIA roles for the "select" 
> element.
> 
> Alas, none of this is possible with the current "select" widget.
> 
> The "button" widget can have aria labels but sill cannot get an "id" tag.
> 
> Neither can have a "name" tag which can also be helpful in this respect (as a 
> poor man's workaround).
> 
> I think it would be time to address this a11y issues that prevents to make a 
> fully accessible document or site with tiddlywiki.
> 
> I propose to help in this endeavour in listing the accessibility problems 
> with forms  widgets. And propose some fixes (if I'm successfull).
> 
> My interest in the quest: I am using tiddliwiki to build a tool for recording 
> scores and minutes at accessibility tests for web sites. It would also be 
> better if the tool was as WCAG compliant as it could be.
> 
> Regards.
> 
> -- 
> Jean-Pierre
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/ed0a3873-8007-4e15-932d-b99811308884n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/864A6D27-D57D-4732-B946-3BEE2EAAFDAA%40gmail.com.

Reply via email to