Skip to content
Open
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
13 changes: 13 additions & 0 deletions packages/fiori/cypress/specs/ShellBar.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1846,4 +1846,17 @@ describe("Component Behavior", () => {
expect(cursor).to.equal("pointer");
});
});
});

describe("Start button spacing", () => {
it("8px gap between multiple startButton elements", () => {
cy.mount(
<ShellBar>
<Button id="hamburger-btn" icon="menu2" slot="startButton"></Button>
<Button id="nav-back-btn" icon={navBack} slot="startButton"></Button>
</ShellBar>
);

cy.get("[ui5-shellbar]").shadow().find(".ui5-shellbar-start-button").should("have.css", "gap", "8px");
});
});
1 change: 1 addition & 0 deletions packages/fiori/src/themes/ShellBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
flex-shrink: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}

.ui5-shellbar-branding-area {
Expand Down
Loading