Skip to content

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

@bkleef

Description

@bkleef

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions