bug(tailwind): `pixelBasedPreset` only converts spacing and font size; `rounded-*` and `max-w-*` still emit `rem`
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
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- tailwindcss, typescript
- Lĩnh vực
- cli, documentation
Hướng nghiên cứu
The preset is defined where pixelBasedPreset overrides theme.extend.fontSize and theme.extend.spacing; read that override first, then compare it with Tailwind's default borderRadius and maxWidth scales. Done means rounded-* and max-w-* also emit pixel values, with the demo at packages/react-email/demo/ab.tsx showing no rem left in the output. Tests should cover the new scales.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What versions are you using? (if relevant)
latest
Describe the Bug
The docs present pixelBasedPreset as the fix for Tailwind's rem units not being supported by many email clients. In [email protected] it only overrides theme.extend.fontSize and theme.extend.spacing, so other utilities that Tailwind expresses in rem still reach the inlined CSS unchanged. The docs do not say the preset is partial, so it is easy to assume everything returned is now in pixels.
What is affected (leave empty if unsure)
Tailwind Component
Link to the code that reproduces this issue
https://github.com/SwissArmyBud/react-email/tree/aporter/2611-rem-from-pixelbasedpreset-demo
To Reproduce
A runnable before/after demo lives on a separate branch so it stays out of this PR:
aporter/2611-rem-from-pixelbasedpreset-demo.
Its README walks through it: cd packages/react-email && npx tsx demo/ab.tsx renders the same email with and without the new scales and prints the rem values found in each, all to local HTML for review. The branch also holds captured evidence (evidence-02.txt to evidence-07.txt: the published-package baseline, per-class output, the scan of Tailwind's rem scales, and the mutation check for the tests) and pre-generated a/b output in the demo folder.
Expected Behavior
The docs present pixelBasedPreset as the fix for Tailwind's rem units not being supported by many email clients, so it is easy to assume everything returned is now in pixels.
What's your node version? (if relevant)
24/LTS
- Ngôn ngữ chính
- TypeScript
- Star
- 19.9k
- Fork
- 1.1k
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 61
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
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
resend/react-email#3889 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
resend/react-email#3878 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tailwind stacked media variants leave nested CSS in rendered emailsCó thể đã có người làm @lakshya-dhariwal đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
resend/react-email#3874 ·
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 9 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
-
Dependency DashboardĐang mởdependencies
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
resend/react-email#746 ·
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ự
-
Language request: NixĐang mởenhancement language
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
pngwn/twinkleplop#178 ·
-
build P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
maniator/verticopolis#1945 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Admin users page number stays stale after filteringCó thể đã có người làm @matthewxkong đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
outline/outline#14529 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày