Tailwind stacked media variants leave nested CSS in rendered emails
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- node.js, react, tailwindcss, typescript
- 領域
- frontend
調査の方向性
Start by reading the compatibility conversion function at canary commit 674d8ec2804b86be5d99156383fb1810179847bf and reproduce the issue with [email protected] using the provided sm:dark:bg-black example. The issue does not name a file or test path, so locate the conversion’s tests and compare the generated CSS with the expected flattened media query. The issue is linked to open pull request #3875.
索引モデルが issue の本文から書いたものです。
説明
With [email protected], Tailwind CSS 4.3.5 and Node 24.22.1, combining variants such as sm:dark:bg-black leaves an @media inside a CSS style rule.
import { render, Tailwind, Head, Html, Body, Text } from 'react-email';
const html = await render(
<Tailwind>
<Html>
<Head />
<Body>
<Text className="sm:dark:bg-black">Example</Text>
</Body>
</Html>
</Tailwind>
);
Actual generated CSS:
@media (min-width:40rem) {
.sm_dark_bg-black {
@media (prefers-color-scheme:dark) {
background-color:rgb(0,0,0)!important;
}
}
}
Expected: flatten the media conditions without leaving CSS nesting inside a style rule, consistent with the compatibility conversion’s stated purpose.
@media (min-width:40rem) and (prefers-color-scheme:dark) {
.sm_dark_bg-black {
background-color:rgb(0,0,0)!important;
}
}
Single variants work correctly. The same nesting reproduces when directly testing the conversion function from canary commit 674d8ec2804b86be5d99156383fb1810179847bf with [email protected]. The full canary renderer and actual Gmail/Outlook rendering have not been tested.
- 主要言語
- TypeScript
- スター
- 19.9k
- フォーク
- 1.1k
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 49
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
resend/react-email のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
resend/react-email#3876 ·
メンテナーはふだん 1 日以内に返信
-
render: unstableTextConversion outputs HTML comments and repeats link URLs in plain text対応中かも @lakshya-dhariwal が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
resend/react-email#3864 ·
メンテナーはふだん 1 日以内に返信
-
<CodeInline> causes duplicated text in body previews in Gmail and other providers due to hacky Orange.fr workaround対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
resend/react-email#3853 ·
メンテナーはふだん 1 日以内に返信
-
Markdown: HTML inside code blocks and inline code isn't escaped対応中かも @KishanKanejiya23 が 11 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
resend/react-email#3814 ·
メンテナーはふだん 1 日以内に返信
-
Inspector Text panel omits Uppercase mark toggle (MARK_NAMES missing "uppercase")対応中かも @svargas-dev が 6 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 22/100
resend/react-email#3849 ·
メンテナーはふだん 1 日以内に返信
resend/react-email の issue をすべて見る
似ている issue
-
documentation good first issue roadmap
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
siyuan-note/siyuan#21324 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
dmno-dev/varlock#1279 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
himynameisdave/bsky-profanity-counter#59 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100