Skip to content
5 changes: 5 additions & 0 deletions packages/main/src/Popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,11 @@ abstract class Popup extends UI5Element {

this._addOpenedPopup();

this.classList.add("ui5-popup-opening");
setTimeout(() => {
this.classList.remove("ui5-popup-opening");
}, 50);

this.open = true;

// initial focus, if focused element is statically created
Expand Down
4 changes: 4 additions & 0 deletions packages/main/src/themes/Popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@

:host(:focus-visible) {
outline: none;
}

:host(.ui5-popup-opening) {
opacity: 0.1;
}
Loading