Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrinyonkov committed Jul 1, 2024
2 parents ee68629 + 0660ae5 commit b337d98
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/main/src/ColorPalette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,6 @@ class ColorPalette extends UI5Element {
this.recentColorsElements[0].selected = true;
this.recentColorsElements[0].focus();
}

if (this.popupMode) {
if (this.showDefaultColor) {
this.focusFirstFocusableElement();
} else {
this.focusFirstDisplayColorElement();
}
}
}

selectColor(item: ColorPaletteItem) {
Expand Down Expand Up @@ -481,14 +473,6 @@ class ColorPalette extends UI5Element {
itemNavigation._focusCurrentItem();
}

focusFirstDisplayColorElement() {
this.focusColorElement(this.displayedColors[0], this._itemNavigation);
}

focusFirstFocusableElement() {
this.firstFocusableElement.focus();
}

get firstFocusableElement() {
return this.colorPaletteNavigationElements[0];
}
Expand Down

0 comments on commit b337d98

Please sign in to comment.