Is `font-family: inherit;` in `.w-tc-editor` required?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, tailwindcss, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Inspect the .w-tc-editor style declaration and reproduce the interaction with Tailwind's font-mono class. Determine whether the font-family: inherit rule is needed; done means the intended custom class styling works without inline styles or !important, with any relevant behavior verified.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Thank you for your hard work.
I am using this library with Tailwind. However, after adding the font-mono class, it is not working in the library. The reason for this is that the class .w-tc-editor is set to font-family: inherit;, which overrides the font-mono setting. This could happen to any custom class.
Although I can use inline styles or !important to fix this issue, I believe that using a class to provide the style is better practice. Furthermore, even without any font settings, the element would still inherit the style.
- Ngôn ngữ chính
- TypeScript
- Star
- 575
- Fork
- 23
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 uiwjs/react-textarea-code-editor
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
uiwjs/react-textarea-code-editor#186 · 2 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
uiwjs/react-textarea-code-editor#183 · 1 bình luận · 2 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
uiwjs/react-textarea-code-editor#182 · 3 reaction ·
-
fail to show line number Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
uiwjs/react-textarea-code-editor#181 · 4 bình luận · 12 reaction ·
Tất cả issue của uiwjs/react-textarea-code-editor
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
TanStack/tanstack.com#1293 ·