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 CSS prefix being defined early #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rquadling
Copy link

The CSS prefix that is part of the theme takes precedence over the prefix
supplied to the converter.

Deprecates $prefix parameter from Theme::asCss()

It would be cumbersome to support a dynamic prefix at this late stage of
the rendering.

Tests updated to cover the following combinations.

  1. Using the default theme or a supplied theme, with and without its own css prefix.
  2. Using the default css prefix or a supplied prefix.
  3. Using inline styling or CSS.

Hopefully fixes #12

Richard Quadling added 3 commits October 10, 2019 16:36
The CSS prefix that is part of the theme takes precedence over the prefix
supplied to the converter.

Deprecates $prefix parameter from Theme::asCss()

It would be cumbersome to support a dynamic prefix at this late stage of
the rendering.

Tests updated to cover the following combinations.

1. Using the default theme or a supplied theme, with and without its own
   css prefix.
2. Using the default css prefix or a supplied prefix.
3. Using inline styling or CSS.
Unit tests now provide 100% code coverage.
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.

Alternative css class naming doesn't work due to hardcoded values
1 participant