nico3333fr / van11y-accessible-modal-tooltip-aria

ES2015 accessible modal tooltip system, using ARIA (compatible IE9+ when transpiled)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Didn't open dialog when a button with class name "js-tooltip" have children

pashkes opened this issue · comments

I needed made multi line border dashed for button so I had to added span element after that the dialog doesn't open. I guess that need to add additional check if the button have children

<button class="js-tooltip" 
        data-tooltip-content-id="tooltip-id"
        data-tooltip-prefix-class="custom">
    <span>Some text</span>
</button>
<div id="tooltip-id" class="hidden"></div>

I'll be happy and thankful if this bug will be fixed

I had fixed the bug, just adding z-index to parent and negative z-index children element