audacity / audacity/audacity.github.io

Active nav link state not showing

Đang mở
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
10
Fork
8
Merge trung bình
18 phút
Pull request đã merge (30 ngày)
5

Mô tả

Run locally the active nav link renders blue:
image

This doesn't appear to be happening in our staging environment.

` function getUrlPath(url) {
const parts = url.split("/");
return "/" + parts[parts.length - 1];
}`

```
function renderNavLink(navLink, index) {
return (

{navLink.linkText}

);
}
```

Add console.log to above code to check what getUrlPath is returning on staging

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

Hướng nghiên cứu

Start by running the site locally and in staging, then add the requested logging around getUrlPath(currentURL) and compare its result with navLink.href. The work is done when the active navigation link receives the blue styling in staging as it does locally.

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

Đánh giá

Công nghệ
typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

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.