We should stop using Protocol as our main styling library

Đang mở
#682 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, scss
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách xem xét dependency của Protocol, các component Svelte import các style của nó, cùng với các token SCSS và Protocol được tham chiếu trong issue và comment của pull request được liên kết. Được xem là hoàn tất khi dependency rõ ràng đối với package Protocol được loại bỏ, đồng thời vẫn giữ lại SCSS, các token và những style được chọn mà ứng dụng vẫn cần.

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

Mô tả

See @wlach's comments:

I'm concerned about the interaction of protocol and this site -- based on the error output I'm seeing (e.g. complaints about unused css selectors) it looks like it's importing a very large chunk of protocol for each svelte component. I'm beginning to think we should probably stop using protocol as a library-- while the idea of sharing styles across Mozilla properties is appealing, it's proving difficult to adapt the assets (which were created to serve the needs of a completely different site-building technology) to the needs of our particular application and I would expect ongoing issues from continuing to attempt to do this.

I'd probably vote to keep using scss, the protocol tokens and whatever styles make sense to copy from the library but yeah, removing our explicit dependency on the package makes sense to me.

Ngôn ngữ chính
JavaScript
Star
33
Fork
49
Merge trung bình
8 ngày 15 giờ
Pull request đã merge (30 ngày)
5

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 mozilla/glean-dictionary

Tất cả issue của mozilla/glean-dictionary

Issue tương tự

Thêm issue về JavaScript

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.