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.

Shim not working with pseudo classes and content.

See original GitHub issue

In the docs there is only example of using pseudo classes like after in combination with { content } utility. In the case of using shim, one would assume the syntax would be similar.

Ex. <p class="after::content-['*']">I should have an ::after with a * bellow me</div> ^ except this doesn’t work

Is there a different syntax for using pseudo classes and content with shim or is it straight up unsupported?

Small repro can be found here

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
danielweckcommented, Jan 25, 2022

In my humble opinion, we (as a user community) should resist the temptation to ask @sastan to fix bugs / maintain Twind 0.x, which by definition is alpha software.

Let’s focus on v1 which has been under heavy development in the last few weeks and is now starting to look great! 😃 https://github.com/tw-in-js/twind/tree/next

0reactions
danielweckcommented, Jan 27, 2022

The preset-ext includes a Short CSS rule. It will catch all arbitrary values. It should always be after preset-tailwind.

PSA - this has changed since this commit: https://github.com/tw-in-js/twind/commit/5c1934d9b2977000c755273b8a1723d9b670bfcf

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is :hover:after valid but not :after:hover? CSS Pseudo ...
CSS Pseudo-Class and Pseudo-Element Selectors ... I tried to add an underline style to an element on hover and it was not working....
Read more >
Error while using pseudo class in css [#2991620] | Drupal.org
I am using Drupal 8.5.4. Fontawesome module 8.x-2.3. Fontawesome library 5.1.0. My settings are: - svg with js (but i tried also webfont)...
Read more >
why this pseudo class selector is not working? - Stack Overflow
I've found out what the problem is. ::after is used to add content after an existing element, not to style elements that come...
Read more >
Pseudo-classes - CSS: Cascading Style Sheets | MDN
A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s). For example, the pseudo-class...
Read more >
HTML5-Form-Shim/index.html at master · dsheiko ... - GitHub
HTML5-Form-Shim/index.html · Take in the account that legacy browsers ignore CSS pseudo-classes · :focus ·, · :invalid ·, · :valid ·, so use...
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