Skip to content

Commit 7ffb575

Browse files
authored
fix(ui5-bar): aria label added depending on the "design" property (#3161)
fix(ui5-bar): aria label added depending on the "design" property Fixes #3020
1 parent fe06f84 commit 7ffb575

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/fiori/src/Bar.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="ui5-bar-root"
1+
<div class="ui5-bar-root" aria-label="{{accInfo.label}}"
22
role="toolbar">
33
<div class="ui5-bar-content-container ui5-bar-startcontent-container">
44
<slot name="startContent"></slot>

packages/fiori/src/Bar.js

+6
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ class Bar extends UI5Element {
115115
static get template() {
116116
return BarTemplate;
117117
}
118+
119+
get accInfo() {
120+
return {
121+
"label": this.design,
122+
};
123+
}
118124
}
119125

120126
Bar.define();

0 commit comments

Comments
 (0)