Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pxtblocks/fields/field_imagedropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export class FieldImageDropdown extends FieldDropdownGrid implements FieldCustom
button.setAttribute('data-value', value);
buttonImg.setAttribute('data-value', value);
buttonImg.setAttribute('aria-hidden', 'true');
button.title = content.alt;
button.appendChild(buttonImg);
this.gridItems.push(button);
buttonContainer.appendChild(button);
Expand Down
1 change: 1 addition & 0 deletions pxtblocks/fields/field_images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export class FieldImages extends FieldImageDropdown implements FieldCustom {
button.setAttribute('data-value', value);
buttonImg.setAttribute('data-value', value);
buttonImg.setAttribute('aria-hidden', 'true');
button.title = content.alt;
button.appendChild(buttonImg);
if (this.addLabel_) {
const buttonText = this.createTextNode_(content.alt);
Expand Down
Loading