Closed Xharos closed 1 year ago
Hi there. Could you try passing the "highlight-container" class name to the LineNumbers
component?
<Highlight {code} {language} let:highlighted>
<LineNumbers hideBorder={false} {highlighted} class="highlight-container" />
</Highlight>
When LineNumbers
is used, it's responsible for rendering the actual markup, including $$restProps such as class
.
I would try it. I'll let you know if it works. I hadn't thought of this solution.
It did solve the issue.
Thanks :)
I have this custom class :
That I use for different div inside my project.
But I don't know how to apply this style to the highlight component.
I've tried to wrap it:
Or to add a custom class :
I keep getting the default scroll bar when everywhere else I got the custom one.
Do you know how to fix this behaviour?
Thanks in advance