Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Tabs : active element #135

Open
N445 opened this issue Feb 26, 2018 · 0 comments
Open

Tabs : active element #135

N445 opened this issue Feb 26, 2018 · 0 comments

Comments

@N445
Copy link

N445 commented Feb 26, 2018

I have a tab structure like that:

<ul>
    <li>
        <a>
            <img>
        </a>
    </li>
    <li>
        <a>
            <img>
        </a>
    </li>
</ul>

When I click on "img", the "active" class is added on the "a", and when I click on the "a", the "active" class is added on the "li".

The class is always added on the parent element. How do I make sure the element is always on a specific element?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant