Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for adding item classes on the nesting element #9

Open
ndm2 opened this issue Feb 10, 2020 · 0 comments
Open

Support for adding item classes on the nesting element #9

ndm2 opened this issue Feb 10, 2020 · 0 comments

Comments

@ndm2
Copy link
Member

ndm2 commented Feb 10, 2020

Consider adding support for setting item classes like ancestorClass on the nesting element, currently only the link/text elements can inherit/consume item classes.

<ul>
    <li class="active-ancestor has-dropdown">
        <a href="#">Services</a>
        <ul class="active-ancestor dropdown"> <!-- < nesting element -->
            <li class='active'>
                <a href="/pages/display/research">Research</a>
            </li>
        </ul>
    </li>
</ul>
  • Does it make sense from a semantic point of view?
  • Can it be integrated into the current inherit/consume support?

/cc @challgren

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

No branches or pull requests

1 participant