PejmanNik/puppeteer-report

Background Color for Header

seshamadhav opened this issue · 1 comments

Hi
Is there a possibility of having background color in the headers
I tried including this in the example (https://github.com/PejmanNik/puppeteer-report/blob/master/examples/basicWithJs/index.html) , but wasn't able to get the background color

<script>
function onChange(element) {
const pageNumberElement = element.getElementsByClassName('pageNumber')[0];
const totalPagesElement = element.getElementsByClassName('totalPages')[0];

if (pageNumberElement.textContent === totalPagesElement.textContent) {
element.style.color = 'red'
element.style.background = '#ececec'
}
}
</script>

I was able to find the solution to the above from this
puppeteer/puppeteer#2182
Hence, closing this. Thanks