Tailwind stacked media variants leave nested CSS in rendered emails
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- node.js, react, tailwindcss, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 19.9k
- Fork
- 1.1k
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 49
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của resend/react-email
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
resend/react-email#3876 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
render: unstableTextConversion outputs HTML comments and repeats link URLs in plain textCó thể đã có người làm @lakshya-dhariwal đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
resend/react-email#3864 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
<CodeInline> causes duplicated text in body previews in Gmail and other providers due to hacky Orange.fr workaroundCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
resend/react-email#3853 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Markdown: HTML inside code blocks and inline code isn't escapedCó thể đã có người làm @KishanKanejiya23 đã nhận 11 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
resend/react-email#3814 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Inspector Text panel omits Uppercase mark toggle (MARK_NAMES missing "uppercase")Có thể đã có người làm @svargas-dev đã nhận 6 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 22/100
resend/react-email#3849 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của resend/react-email
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/admin/user area/internationalization automated-triage issue/auto-triaged type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
grafana/grafana#137281 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Luen/crag-stats#429 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing assertions to legacy Cafe Menu block testsCó thể đã có người làm @mariamanbar đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
freeCodeCamp/freeCodeCamp#71624 ·
Maintainer thường phản hồi trong vòng 1 ngày