Skip to content

Commit 9321dc9

Browse files
Improve reference to shiny_validate (#239)
* chore: Use phrase "input validation" when describing shiny_validate * docs: add link to shiny_validate * make code links for .tags * chore: update markup --------- Co-authored-by: Greg Swinehart <[email protected]>
1 parent 642b7f1 commit 9321dc9

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

quarto-style.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,10 +1622,17 @@ code .parameter-default a {
16221622
}
16231623

16241624
.tags li a:not(.tags li code) {
1625-
font-weight: 600 !important;
1626-
text-transform: uppercase;
1627-
font-size: .75rem;
1628-
padding-bottom: .125rem;
1625+
font-weight: 600 !important;
1626+
text-transform: uppercase;
1627+
font-size: .75rem;
1628+
padding-bottom: .125rem;
1629+
}
1630+
1631+
.tags li a code {
1632+
color: shade-color($primary, 13%);
1633+
font-weight: 400;
1634+
font-size: 0.855rem;
1635+
text-transform: lowercase;
16291636
}
16301637

16311638
/*.tag.badge.text-bg-light {

templates/survey-wizard/index.qmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ shiny create --template survey-wizard --mode core --github posit-dev/py-shiny-te
1919

2020

2121
A simple survey wizard that simply writes responses to a file and displays a confirmation message when submitted.
22-
In this example, we use the `shiny_validate` package to validate the form inputs, and make clever use of [`navset_hidden()`](/api/core/ui.navset_hidden.qmd) to show/hide different steps of the form via action buttons.
22+
In this example, we use the [shiny_validate] package for input validation, providing direct feedback when the user enters invalid responses.
23+
We also make clever use of [`navset_hidden()`](/api/core/ui.navset_hidden.qmd) to show/hide different steps of the form via action buttons.
2324

2425

2526
:::: {.grid .tags}
@@ -45,7 +46,10 @@ In this example, we use the `shiny_validate` package to validate the form inputs
4546
**Packages:**
4647

4748
* `pandas`
48-
* `shiny_validate`
49+
* [`shiny_validate`][shiny_validate]
4950

5051
:::
5152
::::
53+
54+
55+
[shiny_validate]: https://github.com/posit-dev/py-shiny-validate

templates/survey/index.qmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ shiny create --template survey --mode core --github posit-dev/py-shiny-templates
2323

2424

2525
A simple survey form with a few input fields that simply writes responses to a file and displays a confirmation message when submitted.
26-
In this example, we use the `shiny_validate` package to validate the form inputs.
26+
In this example, we use the [shiny_validate] package for input validation, providing direct feedback when the user enters invalid responses.
2727

2828

2929
:::: {.grid .tags}
@@ -49,7 +49,9 @@ In this example, we use the `shiny_validate` package to validate the form inputs
4949
**Packages:**
5050

5151
* `pandas`
52-
* `shiny_validate`
52+
* [`shiny_validate`][shiny_validate]
5353

5454
:::
5555
::::
56+
57+
[shiny_validate]: https://github.com/posit-dev/py-shiny-validate

0 commit comments

Comments
 (0)