allure2
allure2 copied to clipboard
custom logo plugin seems not working
Even if activating the example custom-logo-plugin within allure.yml configuration file, the CSS style file is not updated; thus, no custom logo is shown.
I'm submitting a ...
- [x] bug report
- [ ] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Allure version | 2.4.1 |
---|---|
Test framework | [email protected] |
Allure adaptor | [email protected] |
Generate report using | [email protected] |
Other information
It looks like some css priority order problem.
If you change the custom-logo-plugin\static\styles.css
file to:
.side-nav__brand {
background: url('custom-logo.svg') no-repeat left center !important;
margin-left: 10px;
}
Then it works, but I guess this is a dirty fix though.
In my case there was the "Allure" text overlapping custom logo image png so the solution was as follows:
.side-nav__brand {
background: url('custom-logo.png') no-repeat left center !important;
padding-left: 180px !important;
margin-left: 10px !important;
}
Where 180 px is the width of side-nav div in the expanded state
not working
what is the status of this. its still not working.
It working for me in 2.9.0
- Activate in allure.yml
- update the style.css with the following
.side-nav__brand { background: url('custom-logo.png') no-repeat left center !important; padding-left: 180px !important; margin-left: 10px !important; }
Please try again on 2.10, it works for me by only updating the allure.yaml and updating the customicon.svg
It worked for me for allure 2.8.1 with Base64 image format. -Activate the plugin Update styles.css with below (note - allure logo is in base64 format, you can use your own image, alignment to be changed appropriately according to logo size). I have also overridden the Allure text. styles.zip
DO i need to regenerate the.jar file after all the above changes.
I have not regenerated jar files. Rather, just updated css and placed logo file.
I tried converting to bas 64 , it still does not work for me. My allure version is 2.13.0. At least it should have replaced the existing allure logo and show nothing there bcz i have replaced the existing .svg with my png file in styles.css
Any news?
any update on this ?
any update on this ?