Skip to content

Commit a80e9a4

Browse files
committed
fix build
1 parent 0e00a74 commit a80e9a4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/main/test/pages/AvatarGroup.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,15 +294,15 @@ <h3>AvatarGroup with user defined overflow button</h3>
294294
hiddenItems.forEach(function (avatar, index) {
295295
var color = avatarGroup.colorScheme[firstHiddenIndex + index]
296296
html += '<div class="avatar-slot" style="padding: 5px">' +
297-
'<ui5-avatar interactive icon="' + avatar.icon + '" image="' + avatar.image + '" initials="' + avatar.initials + '" background-color="' + color + '"></ui5-avatar>' +
297+
'<ui5-avatar interactive icon="' + avatar.icon + '" image="' + avatar.image + '" initials="' + avatar.initials + '" background-design="' + color + '"></ui5-avatar>' +
298298
'</div>';
299299
});
300300

301301
for (var index = 0; index < hiddenItems; index++) {
302302
var avatarRef = items[index];
303303

304304
html += '<div class="avatar-slot">' +
305-
'<ui5-avatar interactive image="' + avatarRef.image + '" initials="' + avatarRef.initials + '" background-color="' + avatarRef._effectiveBackgroundColor + '"></ui5-avatar>' +
305+
'<ui5-avatar interactive image="' + avatarRef.image + '" initials="' + avatarRef.initials + '" background-design="' + avatarRef._effectiveBackgroundColor + '"></ui5-avatar>' +
306306
'</div>';
307307
}
308308
placeholder.innerHTML = html;

packages/main/test/samples/AvatarGroup.sample.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h4>Avatar Group - type "Individual"</h4>
6262
function onAvatarClicked(avatarRef) {
6363
const avatarIndex = avatarGroup.items.indexOf(avatarRef);
6464

65-
popAvatar.backgroundColor = avatarGroup.colorScheme[avatarIndex];
65+
popAvatar.backgroundDesign = avatarGroup.colorScheme[avatarIndex];
6666
popAvatar.initials = avatarRef.initials;
6767
popAvatar.image = avatarRef.image;
6868
popAvatar.icon = avatarRef.icon;
@@ -81,7 +81,7 @@ <h4>Avatar Group - type "Individual"</h4>
8181
const color = avatarGroup.colorScheme[firstHiddenIndex + index];
8282

8383
html += '<div class="avatar-slot" style="padding: 5px">' +
84-
'<ui5-avatar interactive icon="' + avatar.icon + '" image="' + avatar.image + '" initials="' + avatar.initials + '" background-color="' + color + '"></ui5-avatar>' +
84+
'<ui5-avatar interactive icon="' + avatar.icon + '" image="' + avatar.image + '" initials="' + avatar.initials + '" background-design="' + color + '"></ui5-avatar>' +
8585
'</div>';
8686
});
8787

@@ -143,7 +143,7 @@ <h4>Avatar Group - type "Individual"</h4>
143143
avatarGroup.hiddenItems.forEach((avatar, index) => {
144144
html += `<ui5-avatar
145145
...
146-
background-color="${avatarGroup.colorScheme[firstHiddenIndex + index]}"
146+
background-design="${avatarGroup.colorScheme[firstHiddenIndex + index]}"
147147
</ui5-avatar>`;
148148
});
149149

@@ -206,7 +206,7 @@ <h4>Avatar Group - type "Group"</h4>
206206
const avatarColor = avatarGroup.colorScheme[index];
207207

208208
html += '<div class="avatar-slot" style="padding: 3px">' +
209-
'<ui5-avatar interactive icon="' + avatar.icon + '" image="' + avatar.image + '" initials="' + avatar.initials + '" background-color="' + avatarColor + '"></ui5-avatar>' +
209+
'<ui5-avatar interactive icon="' + avatar.icon + '" image="' + avatar.image + '" initials="' + avatar.initials + '" background-design="' + avatarColor + '"></ui5-avatar>' +
210210
'</div>';
211211
});
212212

packages/main/test/specs/AvatarGroup.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ describe("avatar-group rendering", () => {
3939
});
4040
});
4141

42-
it("tests if _background-color attribute is automatically set to avatars", () => {
42+
it("tests if _background-design attribute is automatically set to avatars", () => {
4343
const avatars = browser.$$("#avatar-group-group ui5-avatar");
4444

4545
let index = 0;
4646

4747
avatars.forEach(avatar => {
48-
const avatarBackgroundColor = avatar.getAttribute("_background-color");
48+
const avatarBackgroundColor = avatar.getAttribute("_background-design");
4949

5050
if (++index > 10) {
5151
index = 1;

0 commit comments

Comments
 (0)