RapiPdf
RapiPdf copied to clipboard
Attribute pdf(-alternate)-color is not applied to toc
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
:
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.
@mrin9 can you please merge this fix in master?