single-line selection in editor on examples page is not visible

Đang mở
#266 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue nà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
55/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ệ
react, typescript
Lĩnh vực
design, frontend

Hướng nghiên cứu

Start by opening the examples page and locating its editable code editor, then inspect how text selection is styled and rendered. Reproduce the issue by selecting a single line with Shift in an example; done when the selected text is visibly highlighted and the editor still supports copying it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

In the following screenshot the industries within import { industries } from is selected. But as you can see it is not visible. You can only see the green on other instances of industries because
Image

Here's a video to better see the issue:
https://github.com/user-attachments/assets/3347748e-2414-4441-9d6d-41d736d49cc9

Background

I was editing the Industry unemployment stacked area example to apply the cursor anchor animated tooltip from shadcn Tooltip - Custom label to see (A) how adding the animated tooltip worked, and (B) whether changing the Industry unemployment stacked area from a non-animated tooltip anchored to the point to an animated tooltip following the mouse made the chart's tooltip make me feel less sick to my stomach (yes, it did). So I decided to use the fact that the example was editable to do so. But ended up slightly confused when I used shift to select some text to copy and the UI looked as if it was not responding to my interaction.

Ngôn ngữ chính
TypeScript
Star
870
Fork
57
Merge trung bình
11 giờ 58 phút
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/charts

Tất cả issue của TanStack/charts

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.