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

Add ez-toc-container class to container #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 12, 2021

  1. Add ez-toc-container class to container

    Currently, the container does not include a base HTML class.
    So if you want to apply styles to all ToC elements regardless of their configuration, you either have to use the `#ez-toc-container` id (which some might consider bad practice) or use an unnecessarily inconvenient attribute selector (`[class^="ez-toc-"]`). Of course, you could use the `ez_toc_container_class` filter to add it, but you'd need to do this on every project you use the plugin in.
    
    By adding a generic `.ez-toc-container` class, none of the "workarounds" would be necessary.
    tyrann0us authored Feb 12, 2021
    Configuration menu
    Copy the full SHA
    5a755df View commit details
    Browse the repository at this point in the history