From 4f49a25639fb9f1956d50c00d8653bf0d836ab02 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 1 Jul 2016 16:02:01 +0100 Subject: [PATCH] Use a figure element instead of an img, as there is no src attribute. --- services/web/app/views/layout/footer.jade | 4 ++-- services/web/public/stylesheets/components/footer.less | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/layout/footer.jade b/services/web/app/views/layout/footer.jade index bc57352086..ea7a36e2ae 100644 --- a/services/web/app/views/layout/footer.jade +++ b/services/web/app/views/layout/footer.jade @@ -15,7 +15,7 @@ footer.site-footer aria-expanded="false", tooltip="#{translate('language')}" ) - img(class="icon icon-#{currentLngCode}") + figure(class="icon icon-lang icon-#{currentLngCode}") ul.dropdown-menu(role="menu") li.dropdown-header #{translate("language")} @@ -23,7 +23,7 @@ footer.site-footer if !subdomainDetails.hide li.lngOption a.menu-indent(href=subdomainDetails.url+currentUrl) - img(class="icon icon-#{subdomainDetails.lngCode}") + figure(class="icon icon-lang icon-#{subdomainDetails.lngCode}") | #{translate(subdomainDetails.lngCode)} //- img(src="/img/flags/24/.png") each item in nav.left_footer diff --git a/services/web/public/stylesheets/components/footer.less b/services/web/public/stylesheets/components/footer.less index 7a3bc66723..32adc1ee90 100644 --- a/services/web/public/stylesheets/components/footer.less +++ b/services/web/public/stylesheets/components/footer.less @@ -23,3 +23,8 @@ footer.site-footer { } } } + +.icon-lang { + display: inline-block; + vertical-align: middle; +} \ No newline at end of file