You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And changing lines 309-312 to just set --gradient-background-colour ( instead of background fixes things. Albeit not fully perfectly: the active line highlighting then fully overrides any other line highlighting e.g. hl; whereas maybe ideally they'd overlap so it's still clear that the current line has another highlight underneath.
But this is probably good enough as a quick initial fix (a better/different fix, where the active highlighting would be layered on top of other highlighting, might involve a deeper change to the implementation, e.g. maybe adding another div layer for the hl highlighting).
Very cool plugin btw :)
The text was updated successfully, but these errors were encountered:
Describe the bug
The active line highlighting in a codeblock only works if the codeblock doesn't have a language specified. (CSS bug)
Steps to reproduce
ts
Example codeblock
Expected behaviour
Active line should be highlighted the way it is when a language isn't specified:
Current behaviour
Active line is not highlighted when language is specified:
Environment
Additional context / Possible solution
Experimenting a little with the source code in
codeblocks.css
, it looks like thebackground
property from lines 309-312:is getting overridden by the
background
property from lines 143-145:And changing lines 309-312 to just set
--gradient-background-colour
( instead ofbackground
fixes things. Albeit not fully perfectly: the active line highlighting then fully overrides any other line highlighting e.g.hl
; whereas maybe ideally they'd overlap so it's still clear that the current line has another highlight underneath.But this is probably good enough as a quick initial fix (a better/different fix, where the active highlighting would be layered on top of other highlighting, might involve a deeper change to the implementation, e.g. maybe adding another
div
layer for thehl
highlighting).Very cool plugin btw :)
The text was updated successfully, but these errors were encountered: