From 09a3f94d79fc6eacbfd46c86594748e996191eb2 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 7 Nov 2014 21:15:21 +0000 Subject: [PATCH] Accessibility fixes Fixes for accessibility issues raised here: https://groups.google.com/d/topic/tiddlywiki/C6lSabtpdEI/discussion --- core/language/en-GB/EditTemplate.multids | 8 ++++++++ core/ui/EditTemplate/fields.tid | 2 +- core/ui/EditTemplate/tags.tid | 2 +- core/ui/EditTemplate/type.tid | 2 +- core/ui/ViewTemplate/title.tid | 2 +- themes/tiddlywiki/vanilla/base.tid | 2 ++ 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/core/language/en-GB/EditTemplate.multids b/core/language/en-GB/EditTemplate.multids index e703907c6..68929ed2c 100644 --- a/core/language/en-GB/EditTemplate.multids +++ b/core/language/en-GB/EditTemplate.multids @@ -5,6 +5,8 @@ Body/Hint: Use [[wiki text|http://tiddlywiki.com/static/WikiText.html]] to add f Body/Placeholder: Type the text for this tiddler Body/Preview/Button/Hide: hide preview Body/Preview/Button/Show: show preview +Field/Remove/Caption: remove field +Field/Remove/Hint: Remove field Fields/Add/Button: add Fields/Add/Name/Placeholder: field name Fields/Add/Prompt: Add a new field: @@ -13,5 +15,11 @@ Shadow/Warning: This is a shadow tiddler. Any changes will override the default Shadow/OverriddenWarning: This is a modified shadow tiddler. You can revert to the default version by deleting this tiddler Tags/Add/Button: add Tags/Add/Placeholder: tag name +Tags/Dropdown/Caption: tag list +Tags/Dropdown/Hint: Show tag list +Type/Dropdown/Caption: content type list +Type/Dropdown/Hint: Show content type list +Type/Delete/Caption: delete content type +Type/Delete/Hint: Delete content type Type/Placeholder: content type Type/Prompt: Type: diff --git a/core/ui/EditTemplate/fields.tid b/core/ui/EditTemplate/fields.tid index 0cc0b1189..2546b8214 100644 --- a/core/ui/EditTemplate/fields.tid +++ b/core/ui/EditTemplate/fields.tid @@ -20,7 +20,7 @@ $:/config/EditTemplateFields/Visibility/$(currentField)$ <$edit-text tiddler=<> field=<> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/> -<$button class="tc-btn-invisible"> +<$button class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}> <$action-deletefield $field=<>/> {{$:/core/images/delete-button}} diff --git a/core/ui/EditTemplate/tags.tid b/core/ui/EditTemplate/tags.tid index 1f27639dd..4f76fe1b7 100644 --- a/core/ui/EditTemplate/tags.tid +++ b/core/ui/EditTemplate/tags.tid @@ -16,7 +16,7 @@ background-color:$(backgroundColor)$;
<$edit-text tiddler="$:/temp/NewTagName" tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<> class="tc-edit-texteditor"/> - <$button popup=<> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}} + <$button popup=<> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}} <$button message="tm-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class=""> <> diff --git a/core/ui/EditTemplate/type.tid b/core/ui/EditTemplate/type.tid index f9ae0dcb2..2f0be1209 100644 --- a/core/ui/EditTemplate/type.tid +++ b/core/ui/EditTemplate/type.tid @@ -3,7 +3,7 @@ tags: $:/tags/EditTemplate \define lingo-base() $:/language/EditTemplate/
<$fieldmangler> -<> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<> class="tc-edit-typeeditor"/> <$button popup=<> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}} <$button message="tm-remove-field" param="type" class="tc-btn-invisible tc-btn-icon">{{$:/core/images/delete-button}} +<> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<> class="tc-edit-typeeditor"/> <$button popup=<> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}>{{$:/core/images/down-arrow}} <$button message="tm-remove-field" param="type" class="tc-btn-invisible tc-btn-icon" tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}>{{$:/core/images/delete-button}}
diff --git a/core/ui/ViewTemplate/title.tid b/core/ui/ViewTemplate/title.tid index 91c5fafae..0fcee0507 100644 --- a/core/ui/ViewTemplate/title.tid +++ b/core/ui/ViewTemplate/title.tid @@ -8,10 +8,10 @@ fill:$(foregroundColor)$; $:/config/ViewToolbarButtons/Visibility/$(listItem)$ \end
-

<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<> text="hide"><$transclude tiddler=<>/> +

<$set name="foregroundColor" value={{!!color}}> >> <$transclude tiddler={{!!icon}}/> diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index c0fa69721..979df1105 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -634,6 +634,8 @@ button.tc-untagged-label { .tc-tiddler-frame .tc-tiddler-controls { float: right; + font-size: 2.35em; + line-height: 1.2em; } .tc-tiddler-controls .tc-drop-down {