question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hovering / color decoration support for custom patterns

See original GitHub issue

Hello, there doesn’t seem to be a way to customize class name contexts like in TW. Here is the TW issue. Intellisense works with className=.... but not with className: .... etc. Could such support be added?

Thank you!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jamessouthcommented, Sep 4, 2021

Yes, thank you, with this on 21.4

    "windicss.includeLanguages": {
        "rescript": "html",
        "javascript": {
            "type":"js",
            "patterns": [
                "(\\s*class(Name)?\\s*\\:\\s*{?\\s*[\"'`])[^\"'`]*$"
            ]
        }
    }

the JS hovering and class completion work, but I am not getting color boxes in JS once I select a class from the drop-down menu. I do get color boxes in rescript files though.

0reactions
jamessouthcommented, Sep 5, 2021

Ok. Thank you for all your help Alexander!

Read more comments on GitHub >

github_iconTop Results From Across the Web

text-decoration-color - CSS: Cascading Style Sheets | MDN
The color applies to decorations, such as underlines, overlines, strikethroughs, and wavy lines like those used to mark misspellings, ...
Read more >
How to animate your links on hover in Squarespace 7.0 & 7.1
Changing the color of links on hover ... here - copy and paste the code below into your Squarespace website by going to...
Read more >
Hover help | WordPress.org
I have the following CSS to get the colours on a:hover (and some other stuff) ... .post-navigation .post-title:hover { text-decoration: underline; color: ...
Read more >
The Many Ways to Change an SVG Fill on Hover ... - CSS-Tricks
We have hue-rotate() , but that only adjusts an existing color; it doesn't add a color, which is no good since we're starting...
Read more >
Text decoration not working on hover while everything else does
text-decoration only takes the type of decoration, not the color or pattern. Use text-decoration-color to specify the color of the underline ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found