Skip to content

Commit

Permalink
feat(ui): add a link to docs in category hints
Browse files Browse the repository at this point in the history
Ref #308
  • Loading branch information
vednoc committed Jul 1, 2024
1 parent f1d9bb8 commit 8f1f9a8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion web/views/style/add.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@
placeholder="e.g. CC Zero">

<label for="category">Category</label>
<i class="fg:3" id="category-hint">Domain name of website that your userstyle applies to.</i>
<i class="fg:3" id="category-hint">
Domain name of website that your userstyle applies to.
<a href="/docs/faq#why-my-userstyle-doesnt-show-up-in-stylus-inline-search">Read more.</a>
</i>
<input
required maxlength="255"
type="text" name="category" id="category"
Expand Down
5 changes: 4 additions & 1 deletion web/views/style/edit.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@
placeholder="e.g. CC Zero">

<label for="category">Category</label>
<i class="fg:3" id="category-hint">Domain name of website that your userstyle applies to.</i>
<i class="fg:3" id="category-hint">
Domain name of website that your userstyle applies to.
<a href="/docs/faq#why-my-userstyle-doesnt-show-up-in-stylus-inline-search">Read more.</a>
</i>
<input
required maxlength="255"
type="text" name="category" id="category"
Expand Down
10 changes: 8 additions & 2 deletions web/views/style/import.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@
placeholder="e.g. CC Zero">

<label for="category">Category</label>
<i class="fg:3" id="category-hint">Domain name of website that your userstyle applies to.</i>
<i class="fg:3" id="category-hint">
Domain name of website that your userstyle applies to.
<a href="/docs/faq#why-my-userstyle-doesnt-show-up-in-stylus-inline-search">Read more.</a>
</i>
<input
required maxlength="255"
type="text" name="category" id="category"
Expand Down Expand Up @@ -179,7 +182,10 @@

<label for="category">Category</label>
<i class="fg:3">Skip this step if importing from USo-archive.</i><br>
<i class="fg:3" id="category-hint">Domain name of website that your userstyle applies to.</i>
<i class="fg:3" id="category-hint">
Domain name of website that your userstyle applies to.
<a href="/docs/faq#why-my-userstyle-doesnt-show-up-in-stylus-inline-search">Read more.</a>
</i>
<input
type="text" name="category" id="category"
aria-describedby="category-hint"
Expand Down

0 comments on commit 8f1f9a8

Please sign in to comment.