Skip to content

[Q] Is there a way to style the label-operation-method part with different colors depending upon the request method #1107

@himanshu-1034

Description

@himanshu-1034

Currently Rapidoc supports styling the ::part(label-operation-method)

Is there a way we can style different request methods separately?
GET -> Red
POST -> Green
PUT -> Purple
DELETE -> Brown

I am not able to achieve this in any way right now.

It would be great if we can style the Request Methods Displayed in ::part(section-navbar-item)

I am using https://unpkg.com/rapidoc/dist/rapidoc-min.js CDN in my reactJS project

React Version -> 18
Node -> 15
webpack -> 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions