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.

twind integration with islands does not always work

See original GitHub issue

Hi,

I’m having an issue where, if a page contain a tailwind class hidden sm:block on an element and the page also contain an island that also uses the hidden with a media query like hidden md:block, on a different element, Then the element on the outer page will be always hidden.

If i remove the island, the hidden behavior of the page element is correct.

I’m using twind similar to the doc section example

// client_deps.ts
import { apply, setup, tw } from "https://esm.sh/twind@0.16.16";
export { apply, setup, tw };
if (IS_BROWSER) {
  setup({});
}

Repro at https://github.com/sylc/repro_fresh_hidden_mq

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lucacasonatocommented, Jun 27, 2022

@sylc Insanely hacky fix: https://github.com/denoland/dotland/pull/2214. I will address this properly soon.

0reactions
sylccommented, Sep 28, 2022

this has been fixed by the new twind plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zero-runtime Twind integration in Preact WMR - GitHub
Summary. This project demonstrates a recipe for integrating Twind in a website built with Preact WMR. The code in this repository brings a...
Read more >
Twind Guide
Twind is a small compiler (~13kB) that converts Tailwind utility classes into CSS at runtime. The goal of this project is to unify...
Read more >
Lessons on renewable energy from a review of 17 case studies
The literature on sustainable energy on islands is expanding rapidly but the approach could only capture published academic evidence and not emergent ...
Read more >
An embarrassment of riches? Maui shows why renewables ...
Maui shows why renewables curtailment isn't all bad. Not utilizing some wind generation is crucial to the functioning of MECO's grid and its...
Read more >
Oahu Wind Integration and Transmission Study (OWITS) - NREL
This report was prepared as an account of work sponsored by an agency of the United States government. Neither the United States government...
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