Skip to content

Commit

Permalink
rename accessibility property
Browse files Browse the repository at this point in the history
  • Loading branch information
elenastoyanovaa committed Aug 2, 2019
1 parent 632b328 commit b1bc780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/base/src/SVGIconRegistry.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const registry = new Map();

const registerIcon = (name, d, acc) => {
registry.set(name, { d, acc });
const registerIcon = (name, d, accText) => {
registry.set(name, { d, accText });
};

const getIconData = name => {
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Icon extends UI5Element {
get accessibleNameText() {
const icon = getIconData(this._normalizeIconURI(this.src));

return this.accessibleName || icon.acc;
return this.accessibleName || icon.accText;
}

get dir() {
Expand Down

0 comments on commit b1bc780

Please sign in to comment.