We should stop using Protocol as our main styling library

オープン
#682 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, scss
領域
frontend

調査の方向性

まず、Protocol 依存関係、そのスタイルをインポートしている Svelte コンポーネント、Issue とリンクされたプルリクエストのコメントで参照されている SCSS および Protocol のトークンを確認します。完了とは、明示的な Protocol パッケージ依存関係を削除しつつ、アプリケーションが引き続き必要とする SCSS、トークン、選択されたスタイルを維持することです。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
33
フォーク
49
平均マージ
8日 15時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mozilla/glean-dictionary のほかの issue

mozilla/glean-dictionary の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。