RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Styling to elements inside slots

Open drejc opened this issue 2 years ago • 0 comments

I have searched but could not find any solution to this except a different issue: https://github.com/rapi-doc/RapiDoc/issues/678 that had a similar problem.

If I place something like this in a slot:

<div slot='header'> 
        <button onclick='setApiKey()'>Get new token</button>
</div>

The button does not get the styles applied as other buttons - it is the default browser style. I have tried to set styling with class="btn" and part="btn btn-outline" but it doesn't seem to work.

Any suggestion how to fix this - or is this a bug?

drejc avatar Mar 24 '23 08:03 drejc