Add contextual filling help across forms and fiscal simulator steps
tests / ci (push) Waiting to run
tests / ci (push) Waiting to run
This commit is contained in:
@@ -2555,6 +2555,9 @@ export function SimulationForm() {
|
||||
return (
|
||||
<section
|
||||
className="space-y-6 rounded-xl border bg-white p-4 sm:p-6"
|
||||
data-form-help-context="simulator"
|
||||
data-form-help-step={current.id}
|
||||
data-form-help-title={current.title}
|
||||
aria-labelledby="simulator-step-title"
|
||||
aria-busy={!ready}
|
||||
>
|
||||
@@ -3295,6 +3298,13 @@ export function SimulationForm() {
|
||||
>
|
||||
{current.title}
|
||||
</h3>
|
||||
<button
|
||||
type="button"
|
||||
data-form-help-open
|
||||
className="inline-flex min-h-11 items-center gap-2 rounded-lg border border-emerald-700 px-3 py-2 text-sm font-semibold"
|
||||
>
|
||||
<span aria-hidden="true">❔</span> Ajuda neste passo
|
||||
</button>
|
||||
{current.id === 'review' && (
|
||||
<section
|
||||
className="rounded-lg border p-4"
|
||||
|
||||
Reference in New Issue
Block a user