diff --git a/packages/fiori/cypress/specs/ShellBar.cy.tsx b/packages/fiori/cypress/specs/ShellBar.cy.tsx index a9bd3011a304..a5db7c9bb2fd 100644 --- a/packages/fiori/cypress/specs/ShellBar.cy.tsx +++ b/packages/fiori/cypress/specs/ShellBar.cy.tsx @@ -617,7 +617,7 @@ describe("Events", () => { .should("exist"); cy.get("@logoArea") - .click(); + .realClick(); cy.get("@logoClick") .should("have.been.calledOnce"); @@ -637,7 +637,7 @@ describe("Events", () => { .should("exist"); cy.get("@logo") - .click(); + .realClick(); cy.get("@logoClickSmall") .should("have.been.calledOnce"); @@ -741,7 +741,7 @@ describe("Events", () => { cy.get("[ui5-shellbar]") .shadow() .find(".ui5-shellbar-menu-button") - .click(); + .realClick(); cy.get("[ui5-shellbar]") .shadow() @@ -842,7 +842,7 @@ describe("Events", () => { cy.get("@shellbar") .shadow() .find(".ui5-shellbar-logo") - .click(); + .realClick(); cy.get("@logoClick") .should("have.been.calledOnce"); @@ -969,7 +969,7 @@ describe("Events", () => { cy.get("@shellbar") .shadow() .find(".ui5-shellbar-logo") - .click(); + .realClick(); cy.get("@logoClick") .should("have.been.calledOnce"); @@ -987,7 +987,7 @@ describe("Events", () => { cy.get("[ui5-shellbar]") .shadow() .find(".ui5-shellbar-menu-button") - .click(); + .realClick(); cy.get("[ui5-shellbar]") .shadow() diff --git a/packages/fiori/src/themes/ShellBar.css b/packages/fiori/src/themes/ShellBar.css index 78b01a5627f2..9aeefc8914e3 100644 --- a/packages/fiori/src/themes/ShellBar.css +++ b/packages/fiori/src/themes/ShellBar.css @@ -485,6 +485,9 @@ slot[name="profile"] { ::slotted([slot="logo"]) { max-height: 2rem; +} + +::slotted([slot="logo"]):active { pointer-events: none; } diff --git a/packages/fiori/src/themes/ShellBarBranding.css b/packages/fiori/src/themes/ShellBarBranding.css index 3c7ce3d9b664..cad1990d5be7 100644 --- a/packages/fiori/src/themes/ShellBarBranding.css +++ b/packages/fiori/src/themes/ShellBarBranding.css @@ -67,6 +67,9 @@ ::slotted([slot="logo"]) { max-height: 2rem; - pointer-events: none; padding-inline: 0.25rem; +} + +::slotted([slot="logo"]):active { + pointer-events: none; } \ No newline at end of file