[Bug]: Badly formatted SVG in the playground
@danieljcafonso がすでに取り組んでいます。
2026年7月3日 から。
評価
この issue はまだ評価されていません。
説明
📝 Issue Description
The SVG provided in the JSX tutorial raises a linter error. If this is intentional, it's clever, but as-is, it's a bit confusing.
Here's the SVG provided:
<svg height="300" width="400">
<defs>
<linearGradient id="gr1" x1="0%" y1="60%" x2="100%" y2="0%">
<stop offset="5%" style="stop-color:rgb(255,255,3);stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
</linearGradient>
</defs>
<ellipse cx="125" cy="150" rx="100" ry="60" fill="url(#gr1)" />
Sorry but this browser does not support inline SVG.
</svg>
This raises a linter error, https://snipboard.io/Djn564.jpg "Use an object for the style prop instead of a string.
eslint(solid/style-prop)". The preferred format is apparently style={{ "stop-color" : "rgb(255,255,3)", "stop-opacity" : "1" }}.
📋 On which page(s) it occurs
https://www.solidjs.com/tutorial/introduction_jsx
🤔 Expected Behavior
I expected the SVG to be to-par. I found it an interesting exercise to repair the SVG to linter standard. That being said, the linter error is non-obvious, and so may be inappropriate for an Introduction.
👀 Current Behavior
https://snipboard.io/Djn564.jpg
🖥️ Browser
Chrome 149.0.7827.114
📄 Additional Information
No response
- 主要言語
- MDX
- スター
- 292
- フォーク
- 361
- 平均マージ
- 7時間 51分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
solidjs/solid-docs のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
solidjs/solid-docs#1635 ·
-
good first issue solid solidstart
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
solidjs/solid-docs#1522 ·
-
pending review
solidjs/solid-docs#1637 · 担当者 1 名 ·
-
pending review
solidjs/solid-docs#1636 · コメント 1 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
solidjs/solid-docs#1630 · コメント 1 件 ·