Add icon titles for accessibility.
Make clear the icons purpose with a `title` tooltip.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div id="{{ $value.Name }}-{{ $key }}" data-type="array-item">
|
||||
{{ template "value" $value }}
|
||||
<div class="action delete" data-delete="{{ $value.Name }}-{{ $key }}">
|
||||
<i class="material-icons">close</i>
|
||||
<i class="material-icons" title="Close">close</i>
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
@@ -15,7 +15,7 @@
|
||||
<label for="{{ $value.Name }}">{{ $value.Title }}</label>
|
||||
{{ template "value" $value }}
|
||||
<div class="action delete" data-delete="block-{{ $value.Name }}">
|
||||
<i class="material-icons">close</i>
|
||||
<i class="material-icons" title="Close">close</i>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -50,10 +50,10 @@
|
||||
<h3>{{ .Title }}</h3>
|
||||
{{ end }}
|
||||
<div class="action add">
|
||||
<i class="material-icons">add</i>
|
||||
<i class="material-icons" title="Add">add</i>
|
||||
</div>
|
||||
<div class="action delete" data-delete="{{ .Name }}">
|
||||
<i class="material-icons">close</i>
|
||||
<i class="material-icons" title="Close">close</i>
|
||||
</div>
|
||||
{{ template "blocks" .Content }}
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user