allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

custom logo plugin seems not working

Open gtuveri opened this issue 7 years ago • 13 comments

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

gtuveri avatar Nov 09 '17 11:11 gtuveri

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.

Sup3rGeo avatar Mar 16 '18 11:03 Sup3rGeo

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

arustamov avatar Mar 23 '18 10:03 arustamov

not working

nyadav17 avatar Aug 05 '18 12:08 nyadav17

what is the status of this. its still not working.

satapathysidhant avatar Sep 18 '18 10:09 satapathysidhant

It working for me in 2.9.0

  1. Activate in allure.yml
  2. 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; }

12rambo avatar Feb 11 '19 15:02 12rambo

Please try again on 2.10, it works for me by only updating the allure.yaml and updating the customicon.svg

FerrisYu avatar Apr 02 '19 02:04 FerrisYu

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

PrakharSuhane avatar Apr 02 '19 06:04 PrakharSuhane

DO i need to regenerate the.jar file after all the above changes.

diptilenka avatar May 11 '20 04:05 diptilenka

I have not regenerated jar files. Rather, just updated css and placed logo file.

PrakharSuhane avatar May 11 '20 12:05 PrakharSuhane

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

pankaj1491 avatar Nov 07 '20 08:11 pankaj1491

Any news?

Tyson1986 avatar Aug 23 '21 18:08 Tyson1986

any update on this ?

PavanMudigondaTR avatar Jan 08 '23 16:01 PavanMudigondaTR

any update on this ?

PavanMudigondaTR avatar Jul 23 '23 14:07 PavanMudigondaTR