bigskysoftware / bigskysoftware/_hyperscript
Possibly outdated information in the `add` docs
- 主要言語
- JavaScript
- スター
- 3.8k
- フォーク
- 172
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In the [add docs](https://hyperscript.org/commands/add/) it says
> Note: Hyperscript supports hyphens in object property names, so you can write add { font-size: '2em' }. However, double hyphens (--) mark comments in hyperscript, so if you need to use them for [CSS Custom Properties][], use quotes -- add { '--big-font-size': '2em' }.
But in the 0.8.4 release notes it says:
> Comments now require two dashes and a space, like so: -- , which enables double dashes in class literals like so: add .foo--bar
So I guess the note can be removed, right?
Happy to open a PR if that's the case
PS: I'm also happy to add a note on using class names with a dash in them, as is frequent with TailwindCSS utilities. (`.{'foo-bar'}`)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
リンクされている add のドキュメントにある注記を、引用されている 0.8.4 のリリースノートの動作と比較し、そのうえで現在のコメント構文とクラスリテラル構文を確認します。現在の動作に合うようにドキュメントの説明を更新し、適切な場合にのみ、提案されているダッシュ付きクラスの例を含めます。古い警告が解消されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- css, tailwindcss
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100