a11y fix
This commit is contained in:
Родитель
4bf206a04c
Коммит
c6a5722805
|
@ -1,5 +1,5 @@
|
|||
li.dropdown-item(role='presentation', class=classes, id=id)
|
||||
a(role='menuitem' href='javascript:void(0);')
|
||||
a(role='menuitem', href='javascript:void(0);')
|
||||
if iconRight
|
||||
span.icon-right(class=iconRight)
|
||||
if iconLeft
|
||||
|
|
|
@ -3,16 +3,15 @@ li.dropdown-radio-group(class=classes, id=id)
|
|||
li.dropdown-header(role='presentation')=title
|
||||
each item in items
|
||||
li.dropdown-radio-item(role='presentation', data-value=item.value)
|
||||
span(role='menuitem')
|
||||
span
|
||||
if item.value === value
|
||||
span.selection.selection-selected(class=checkIcon)
|
||||
else
|
||||
span.selection(class=checkIcon)
|
||||
span.text=item.text
|
||||
span.text(role='menuitem' tabindex='0')=item.text
|
||||
if !item.locked
|
||||
span.remove
|
||||
if removeText
|
||||
a.pull-right.remove-text=removeText
|
||||
a.pull-right.remove-text(role='button' tabindex='0', href='javascript:void(0);')=removeText
|
||||
if removeIcon
|
||||
span.pull-right.remove-icon(class=removeIcon)
|
||||
|
||||
span.pull-right.remove-icon(role='button' tabindex='0', class=removeIcon)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
mixin menuButtonMixin(options)
|
||||
a(role='menuitem', class=options.classes, id=options.id)
|
||||
a(role='menuitem', class=options.classes, id=options.id, href='javascript:void(0);')
|
||||
if options.iconLeft
|
||||
span.icon-left(class=options.iconLeft)
|
||||
span.text=options.text
|
||||
|
|
Загрузка…
Ссылка в новой задаче