Skip to content

Commit efe56eb

Browse files
committed
updated js and removed provisional
1 parent 3a5c929 commit efe56eb

File tree

8 files changed

+407
-199
lines changed

8 files changed

+407
-199
lines changed

site/pages/docs/ref/stepsform/stepsform-en.hbs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@
66
"categoryfile": "plugins",
77
"description": "Automatically converts a form into steps.",
88
"altLangPrefix": "stepsform",
9-
"dateModified": "2020-04-16"
9+
"dateModified": "2025-06-02"
1010
}
1111
---
1212
<span class="wb-prettify all-pre hide"></span>
1313

14-
<div class="alert alert-warning">
15-
<h2>Unstable feature</h2>
16-
<p>To be used at <strong>your own risk</strong>. This feature described below can be removed in any subsequent minor/major release</p>
17-
<p><small><a href="https://wet-boew.github.io/wet-boew-documentation/decision/7.html">Learn more about the design decision around provisional features.</a></small></p>
18-
<p><small><a href="../provisional-en.html">Check other provisional features available.</a></small></p>
19-
</div>
20-
2114
<section>
2215
<h2>Purpose</h2>
2316
<p>This component provides the ability to break a form into steps.</p>
@@ -63,7 +56,7 @@
6356
<small>These will become your steps</small>
6457
<pre><code>&lt;fieldset&gt;<br>&lt;legend&gt;Client Information&lt;/legend&gt;<br>&lt;div&gt;(Any content in the div will be hidden.)&lt;/div&gt;<br>&lt;/fieldset&gt;</code></pre>
6558
</li>
66-
<li>(Optional) Add the class <code>quiz</code> to the div with the class <code>wb-steps</code> to add a progress bar to the steps form.
59+
<li>(Optional) Add the class <code>quiz</code> to the div with the class <code>wb-steps</code> to convert into a steps quiz format.
6760
<pre><code>&lt;div class=&quot;wb-frmvld wb-steps quiz&quot;&gt;&lt;/div&gt;</code></pre>
6861
</li>
6962
</ol>

site/pages/docs/ref/stepsform/stepsform-fr.hbs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@
66
"categoryfile": "plugins",
77
"description": "Converti automatiquement un formulaire en étapes.",
88
"altLangPrefix": "stepsform",
9-
"dateModified": "2020-04-16"
9+
"dateModified": "2025-06-02"
1010
}
1111
---
1212
<div lang="en">
1313
<span class="wb-prettify all-pre hide"></span>
14-
<p><strong>Needs translation</strong></p>
15-
<div class="alert alert-warning">
16-
<h2>Unstable feature</h2>
17-
<p>To be used at <strong>your own risk</strong>. This feature described below can be removed in any subsequent minor/major release</p>
18-
<p><small><a href="https://wet-boew.github.io/wet-boew-documentation/decision/7.html">Learn more about the design decision around provisional features.</a></small></p>
19-
<p><small><a href="../provisional-fr.html">Check other provisional features available.</a></small></p>
20-
</div>
2114

2215
<section>
2316
<h2>But</h2>
@@ -64,7 +57,7 @@
6457
<small>Ces éléments <code>&lt;fieldset&gt;</code> deviendront les étapes de votre formulaire</small>
6558
<pre><code>&lt;fieldset&gt;<br>&lt;legend&gt;Informations du client&lt;/legend&gt;<br>&lt;div&gt;(Tout contenu situé à l'intérieur du div sera caché.)&lt;/div&gt;<br>&lt;/fieldset&gt;</code></pre>
6659
</li>
67-
<li>(Facultatif) Ajouter la classe <code>quiz</code> au div avec la classe <code>wb-steps</code> pour ajouter une barre de progression au formulaire d'étapes.
60+
<li>(Facultatif) Ajoutez la classe <code>quiz</code> au div avec la classe <code>wb-steps</code> pour convertir en un format de quiz par étapes.
6861
<pre><code>&lt;div class=&quot;wb-frmvld wb-steps quiz&quot;&gt;&lt;/div&gt;</code></pre>
6962
</li>
7063
</ol>

src/i18n/base.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ wb.i18nDict = {
257257
"pii-view-more-info": "@pii-view-more-info@",
258258
"pii-yes-btn": "@pii-yes-btn@",
259259
"pii-cancel-btn": "@pii-cancel-btn@",
260-
"redacted": "@redacted@"
260+
"redacted": "@redacted@",
261+
262+
/* Steps form */
263+
"rel-preposition": "@rel-preposition@",
264+
"progress-label": "@progress-label@"
261265
};
262266

263267
} )( wb );

src/i18n/i18n.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,3 +406,5 @@ Data-scrub,pii-header,Remove Personal information,Supprimer les informations per
406406
,pii-yes-btn,Remove personal information and submit,Supprimer les informations personnelles et soumettre,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
407407
,pii-cancel-btn,Go back and edit fields,Retourner et modifier les champs,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
408408
,redacted,redacted,caviardé,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
409+
,rel-preposition, of , de ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
410+
,progress-label,Questionnaire progress:,Progression du questionnaire : ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

src/plugins/stepsform/_base.scss

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
33
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
44
*/
5-
.provisional.wb-steps {
5+
.wb-steps {
66
counter-reset: fieldset_counter;
77

88
.wb-tggle-fildst {
@@ -29,67 +29,68 @@
2929
.subfields {
3030
border: 0;
3131
}
32-
}
3332

34-
.provisional.wb-steps.quiz {
35-
.steps-wrapper {
36-
border-bottom: none;
33+
&.quiz {
34+
.steps-wrapper {
35+
border-bottom: none;
3736

38-
.buttons {
39-
.btn {
40-
display: inline-block;
41-
margin: 10px 1%;
42-
width: 48%;
37+
.buttons {
38+
.btn {
39+
display: inline-block;
40+
margin: 10px 1%;
41+
width: 48%;
4342

43+
}
4444
}
4545
}
46-
}
4746

48-
fieldset:not(:first-child):has(legend) legend {
49-
border-top: 1px solid #e5e5e5;
50-
padding-top: 10px;
51-
}
5247

53-
fieldset:not(:first-child):not(:has(legend)) {
54-
border-top: 1px solid #e5e5e5;
55-
padding-top: 10px;
56-
}
48+
fieldset {
49+
&:not(:first-child) legend {
50+
border-top: 1px solid #e5e5e5;
51+
padding-top: 10px;
52+
}
5753

58-
fieldset {
59-
legend {
60-
float: none;
61-
}
62-
}
54+
&:not(:first-child):not(:has(legend)) {
55+
border-top: 1px solid #e5e5e5;
56+
padding-top: 10px;
57+
}
6358

64-
.wb-tggle-fildst {
65-
> legend:before {
66-
content: "";
67-
counter-increment: none;
59+
legend {
60+
float: none;
61+
}
6862
}
6963

70-
ul {
71-
list-style: none;
72-
padding-left: 20px;
64+
.wb-tggle-fildst {
65+
> legend:before {
66+
content: "";
67+
counter-increment: none;
68+
}
69+
70+
ul {
71+
list-style: none;
72+
padding-left: 20px;
73+
}
7374
}
74-
}
7575

76-
label {
77-
display: block;
78-
}
76+
label {
77+
display: block;
78+
}
7979

80-
progress.progressBar {
81-
width: 100%;
82-
}
80+
progress.progressBar {
81+
width: 100%;
82+
}
8383

84-
.progressText {
85-
text-align: center;
86-
}
84+
.progressText {
85+
text-align: center;
86+
}
8787

88-
p {
89-
font-size: 20px;
88+
p {
89+
font-size: 20px;
90+
}
9091
}
9192
}
9293

93-
.cnt-wdth-lmtd main .panel.stepsquiz:has( .provisional.wb-steps.quiz ) {
94+
.cnt-wdth-lmtd main .panel.stepsquiz:has( .wb-steps.quiz ) {
9495
max-width: 65ch;
9596
}

0 commit comments

Comments
 (0)