Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Styles section of extent-config.xml is ignored. CSS is used instead #140

Open
grzegorz-jarosz opened this issue Oct 24, 2018 · 1 comment

Comments

@grzegorz-jarosz
Copy link

grzegorz-jarosz commented Oct 24, 2018

I couldn't get some custom styles to work. Putting them inside styles tags of extent-reports.xml config file didn't work.
After some searching inside this plugin source files I noticed that "styles" doesn't seem to be used. What I found is that "css" is used there. So putting my styles inside "css" config did the trick:

<!-- custom styles -->
<css>
    <![CDATA[
        <!-- I've put my styles here -->
     ]]>
</css>`

So I report this, so everyone having this issue can solve it.

I can imagine two solutions to this issue. Either having the rest of the plugin read "styles" from config as well or updating reference extent-config.xml file to have "css" section there.

Edit: I forgot to specify version I was using. It was 3.1.3

@foursyth
Copy link

Thank you for taking time to research this hook. Version 4 supports both styles and CSS tags - to be backward compatible with version 2 and version 3 config xmls.

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

No branches or pull requests

2 participants