@@ -161,7 +161,7 @@ const metadata = {
161
161
* It shows the sequence of steps, where the recommended number of steps is between 3 and 8 steps.
162
162
* <ul>
163
163
* <li> Steps can have different visual representations - numbers or icons.
164
- * <li> Steps might have labels for better readability - heading and subheding .</li>
164
+ * <li> Steps might have labels for better readability - titleText and subTitleText .</li>
165
165
* <li> Steps are defined by using the <code>ui5-wizard-step</code> as slotted element within the <code>ui5-wizard</code></li>
166
166
* </ul>
167
167
*
@@ -205,7 +205,7 @@ const metadata = {
205
205
* When the task has less than 3 steps.
206
206
*
207
207
* <h3>Responsive Behavior</h3>
208
- * On small widths the step's heading, subheading and separators in the navigation area
208
+ * On small widths the step's titleText, subtitleText and separators in the navigation area
209
209
* will start truncate and shrink and from particular point they will hide to free as much space as possible.
210
210
*
211
211
* <h3>ES6 Module Import</h3>
@@ -818,8 +818,8 @@ class Wizard extends UI5Element {
818
818
// Hide separator if it's the last step and it's not a branching one
819
819
const hideSeparator = ( idx === stepsCount - 1 ) && ! step . branching ;
820
820
821
- const isOptional = step . subheading ? this . optionalStepText : "" ;
822
- const ariaLabel = ( step . heading ? `${ pos } ${ step . heading } ${ isOptional } ` : `${ this . navStepDefaultHeading } ${ pos } ${ isOptional } ` ) . trim ( ) ;
821
+ const isOptional = step . subtitleText ? this . optionalStepText : "" ;
822
+ const ariaLabel = ( step . titleText ? `${ pos } ${ step . titleText } ${ isOptional } ` : `${ this . navStepDefaultHeading } ${ pos } ${ isOptional } ` ) . trim ( ) ;
823
823
const isAfterCurrent = ( idx > selectedStepIndex ) ;
824
824
825
825
accInfo = {
@@ -830,8 +830,8 @@ class Wizard extends UI5Element {
830
830
831
831
return {
832
832
icon : step . icon ,
833
- heading : step . heading ,
834
- subheading : step . subheading ,
833
+ titleText : step . titleText ,
834
+ subtitleText : step . subtitleText ,
835
835
number : pos ,
836
836
selected : step . selected ,
837
837
disabled : step . disabled ,
0 commit comments