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

Conversation

pixelastic
Copy link
Contributor

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

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
@redox
Copy link
Contributor

redox commented Oct 16, 2015

LGTM

vvo pushed a commit that referenced this pull request Oct 16, 2015
feat(headerFooter): Add BEM classes to header and footer
@vvo vvo merged commit 19d14da into develop Oct 16, 2015
@vvo vvo deleted the feat/header-footer-bem branch October 16, 2015 21:24
@vvo vvo removed the in progress label Oct 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants