Parcourir la source

New data-attribute "label" for links

Creates a <abbr> element
@soyjavi il y a 14 ans
Parent
commit
cf4d7e1697
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/attributes/Lungo.Attributes.Data.js

+ 5 - 0
src/attributes/Lungo.Attributes.Data.js

@@ -43,5 +43,10 @@ LUNGO.Attributes.Data = {
         tag: 'back',
         selector: 'header, footer',
         html: '<a href="#back" data-target="section" class="onleft button default"><span class="icon {{value}}"></span></a>'
+    },
+    Label: {
+        tag: 'label',
+        selector: 'a',
+        html: '<abbr>{{value}}</abbr>'
     }
 };