Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bkleef opened this issue Nov 9, 2021 · 1 comment
Open

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

bkleef opened this issue Nov 9, 2021 · 1 comment

Comments

@bkleef
Copy link

bkleef commented Nov 9, 2021

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
Copy link
Author

bkleef commented Nov 10, 2021

@mrin9 can you please merge this fix in master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant