diff --git a/packages/main/cypress/specs/TabContainer.cy.tsx b/packages/main/cypress/specs/TabContainer.cy.tsx
index 2cdd7e833a81..35b871b54caf 100644
--- a/packages/main/cypress/specs/TabContainer.cy.tsx
+++ b/packages/main/cypress/specs/TabContainer.cy.tsx
@@ -1144,6 +1144,102 @@ describe("TabContainer keyboard handling", () => {
cy.get("@tabContainer").shadow().find("ui5-responsive-popover").as("popover");
cy.get("@popover").should("be.visible", "Popover is opened");
});
+
+ it("tests handling of the focus navigation with End overflow mode", () => {
+ cy.mount(
+ <>
+
+
+ Tab 1
+ Tab 2
+ Tab 3
+ Tab 4
+ Tab 4
+
+
+ >
+ );
+
+ cy.viewport(300, 1080);
+
+ cy.get("#tabContainerStartAndEndOverflow").shadow().find(".ui5-tc__overflow--end").as("endOverflow");
+
+ cy.get("#btn1").realClick();
+
+ cy.realPress("Tab");
+
+ cy.realPress("ArrowRight");
+
+ cy.get("@endOverflow")
+ .find("[ui5-button]")
+ .shadow()
+ .find(".ui5-button-root")
+ .should("be.focus");
+
+ cy.realPress("Tab");
+
+ cy.get("#btn2").should("be.focused");
+
+ cy.realPress(["Shift", "Tab"]);
+
+ cy.get("@endOverflow")
+ .find("[ui5-button]")
+ .shadow()
+ .find(".ui5-button-root")
+ .should("be.focus");
+
+ cy.realPress(["Shift", "Tab"]);
+
+ cy.get("#btn1").should("be.focused");
+ });
+
+ it("tests handling of the focus navigation with Start overflow mode", () => {
+ cy.mount(
+ <>
+
+
+ Tab 1
+ Tab 2
+ Tab 3
+ Tab 4
+ Tab 4
+
+
+ >
+ );
+
+ cy.viewport(300, 1080);
+
+ cy.get("#tabContainerStartAndEndOverflow").shadow().find(".ui5-tc__overflow--start").as("startOverflow");
+
+ cy.get("#btn1").realClick();
+
+ cy.realPress("Tab");
+
+ cy.realPress("ArrowLeft");
+
+ cy.get("@startOverflow")
+ .find("[ui5-button]")
+ .shadow()
+ .find(".ui5-button-root")
+ .should("be.focus");
+
+ cy.realPress("Tab");
+
+ cy.get("#btn2").should("be.focused");
+
+ cy.realPress(["Shift", "Tab"]);
+
+ cy.get("@startOverflow")
+ .find("[ui5-button]")
+ .shadow()
+ .find(".ui5-button-root")
+ .should("be.focus");
+
+ cy.realPress(["Shift", "Tab"]);
+
+ cy.get("#btn1").should("be.focused");
+ });
});
describe("TabContainer popover", () => {
diff --git a/packages/main/src/TabContainerTemplate.tsx b/packages/main/src/TabContainerTemplate.tsx
index f64aaa62c322..28d1529bf8ba 100644
--- a/packages/main/src/TabContainerTemplate.tsx
+++ b/packages/main/src/TabContainerTemplate.tsx
@@ -73,7 +73,6 @@ export default function TabContainerTemplate(this: TabContainer, injectedPartial