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

feat(headerFooter): Add BEM classes to header and footer #265

Merged
merged 1 commit into from
Oct 16, 2015

Commits on Oct 16, 2015

  1. feat(headerFooter): Add BEM classes to header and footer

    All headers and footers will now receive a `ais-header` and
    `ais-footer` class. Additional classes can also be added through
    `cssClasses.{root,header,body,footer}`.
    
    It means that it is no longer necessary to pass a full HTML div in the
    `templates.header`. One can simply pass the header text content and
    pass a `cssClasses.header` custom class.
    
    So far only the `refinementList` widgets correctly add the
    `ais-widgetname-header`/`ais-widgetname-footer` classes. I'll update
    the other widgets once this gets merged.
    
    Fixes #259
    Relies on #264 being
    merged first
    pixelastic committed Oct 16, 2015
    Configuration menu
    Copy the full SHA
    9e9d438 View commit details
    Browse the repository at this point in the history