Skip to content

Commit

Permalink
Fix the css class and add aria label
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram committed May 14, 2020
1 parent f5370f9 commit a0648d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions baseframe/templates/baseframe/bootstrap3/forms.html.jinja2
Expand Up @@ -247,10 +247,10 @@
{% endmacro %}

{%- macro map_marker_widget(field) %}
<div class="input-group no-jshidde map-location">
<div class="input-group no-jshidden map-location">
<span class="input-group-addon"><i class="fa fa-search"></i></span>
<input type="text" class="form-control" id="{{ field.id }}_search" placeholder="Enter a location">
<a href="javascript:void(0)" id="{{ field.id }}_clear" class="map-clear"><i class="fa fa-times"></i></a>
<a href="javascript:void(0)" id="{{ field.id }}_clear" class="map-clear" aria-label="clear location"><i class="fa fa-times"></i></a>
</div>
<div id="{{ field.id }}_map" class="no-jshidden map-marker"></div>
<div class="jshidden">{{ field(class="field-" + field.id + " form-control") }}</div>
Expand Down
2 changes: 1 addition & 1 deletion baseframe/templates/baseframe/mui/forms.html.jinja2
Expand Up @@ -64,7 +64,7 @@
<div class="map">
<div class="mui-textfield no-jshidden">
<input type="text" class="map__search-field" id="{{ field.id }}_search" placeholder="Enter a location">
<a href="javascript:void(0)" id="{{ field.id }}_clear" class="map__clear">{{ faicon(icon='times', icon_size='title') }}</a>
<a href="javascript:void(0)" id="{{ field.id }}_clear" class="map__clear" aria-label="clear location">{{ faicon(icon='times', icon_size='title') }}</a>
{%- if not nolabel %}
<label>{{ field.label.text }}</label>
{%- endif %}
Expand Down

0 comments on commit a0648d2

Please sign in to comment.