RapiPdf icon indicating copy to clipboard operation
RapiPdf copied to clipboard

Attribute pdf(-alternate)-color is not applied to toc

Open bkleef opened this issue 2 years ago • 1 comments

Items (like 1. PET) and subitems (like 1.1 PUT /pet) in the toc are the default black and blue instead of color specified in pdf-primary-color and pdf-alternate-color:

Preview

This can be reproduced with:

<!DOCTYPE html>
<html>

<head>
    <script src="https://unpkg.com/rapipdf/dist/rapipdf-min.js"></script>
</head>

<body>
    <!-- Available settings: https://mrin9.github.io/RapiPdf/api.html. -->
    <rapi-pdf style="width:700px; height:40px; font-size:18px;" button-bg="#3da945"
        spec-url="https://mrin9.github.io/RapiPdf/specs/petstore.json"
        pdf-title="API Reference" pdf-primary-color="#3da945" pdf-alternate-color="#595959" include-toc="true">
    </rapi-pdf>
</body>

</html>

This behavior can also be reproduced on RapiPDF's webpage by clicking: "With different Color scheme".

Please apply color scheme to whole PDF.

bkleef avatar Nov 09 '21 11:11 bkleef

@mrin9 can you please merge this fix in master?

bkleef avatar Nov 10 '21 09:11 bkleef