Skip to content

Commit

Permalink
fix(core/panes): rotate icon at left and right pane (#1336)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Maurer <[email protected]>
  • Loading branch information
matthiashader and nuke-ellington committed Jun 18, 2024
1 parent 46e7be6 commit 1db5a06
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-rings-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@siemens/ix": patch
---

fix(core/panes): rotate icon at left and right pane
4 changes: 4 additions & 0 deletions packages/core/src/components/pane/pane.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
text-orientation: mixed;
transform: rotate(180deg);
flex-direction: row-reverse;

ix-icon {
transform: rotate(90deg);
}
}
}

Expand Down
33 changes: 33 additions & 0 deletions packages/core/src/tests/panes/icon/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!--
SPDX-FileCopyrightText: 2024 Siemens AG
SPDX-License-Identifier: MIT
-->

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"
name="viewport"
/>
<title>Stencil Component Starter</title>
</head>
<body style="width: 100vw; height: 100vh">
<ix-pane-layout
id="pane-layout"
variant="floating"
layout="full-horizontal"
borderless="true"
>
<ix-pane heading="Pane Left" slot="left" icon="about" size="33%">
<p>This is the left pane.</p>
</ix-pane>
<ix-pane heading="Pane Right" slot="right" icon="about" size="33%">
<p>This is the right pane.</p>
</ix-pane>
</ix-pane-layout>
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script>
</body>
</html>
7 changes: 7 additions & 0 deletions packages/core/src/tests/panes/panes.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ test.describe('pane', () => {
await expect(page).toHaveScreenshot();
});

regressionTest('layout, inline, icon, collapsed', async ({ page }) => {
await page.goto('panes/icon');
await page.waitForTimeout(1000);

await expect(page).toHaveScreenshot();
});

regressionTest('layout, inline, expanded', async ({ page }) => {
await page.goto('panes/layout');
await page.locator('ix-button').first().click();
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1db5a06

Please sign in to comment.