Skip to content

Commit 5e2619c

Browse files
ivoplashkovilhan007
authored andcommitted
fix(ui5-wizard): correct aria-controls value (#3180)
1 parent 4c170a4 commit 5e2619c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/fiori/src/Wizard.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="ui5-wiz-root" aria-label="{{ariaLabelText}}" role="region">
22
<nav class="ui5-wiz-nav" aria-label="{{navAriaLabelText}}" tabindex="-1">
3-
<div class="ui5-wiz-nav-list" role="list" aria-label="{{listAriaLabelText}}" aria-controls="ui5-wiz-content" >
3+
<div class="ui5-wiz-nav-list" role="list" aria-label="{{listAriaLabelText}}" aria-controls="{{_id}}-wiz-content">
44
{{#each _stepsInHeader}}
55
<ui5-wizard-tab
66
heading="{{heading}}"
@@ -25,7 +25,7 @@
2525
</div>
2626
</nav>
2727

28-
<div class="ui5-wiz-content" @scroll="{{onScroll}}">
28+
<div id="{{_id}}-wiz-content" class="ui5-wiz-content" @scroll="{{onScroll}}">
2929
{{#each _steps}}
3030
<div class="ui5-wiz-content-item"
3131
?hidden="{{disabled}}"

packages/fiori/test/specs/Wizard.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe("Wizard general interaction", () => {
3333
"Wizard nav has aria-label set.");
3434
assert.strictEqual(wizList.getAttribute("role"), "list",
3535
"Wizard list has role set..");
36-
assert.strictEqual(wizList.getAttribute("aria-controls"), "ui5-wiz-content",
36+
assert.strictEqual(wizList.getAttribute("aria-controls"), `${wiz.getProperty("_id")}-wiz-content`,
3737
"Wizard list has aria-controls set.");
3838
assert.strictEqual(wizList.getAttribute("aria-label"), wizListText,
3939
"Wizard list has aria-label set.");

0 commit comments

Comments
 (0)