Skip to content

Commit

Permalink
fix(core/application-header): align logo in center position
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Oct 5, 2022
1 parent c3eef6e commit 74be7a1
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
}

.logo {
display: inline-block;
display: inline-flex;
align-items: center;
position: relative;
height: 32px;
overflow: hidden;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@ regressionTest.describe('application header: basic', () => {
await page.goto(`application-header/test/basic`);
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot();
});

regressionTest(
'should not have visual regressions - svg',
async ({ page }) => {
await page.goto(`application-header/test/basic-svg`);
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot();
}
);
});
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.
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!--
SPDX-FileCopyrightText: 2022 Siemens AG
SPDX-License-Identifier: MIT
-->

<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"
/>
<title>Stencil Component Starter</title>
</head>
<body>
<ix-application-header name="Test app name">
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 184.567 138"
slot="logo"
>
<defs>
<linearGradient
id="x05mhzd7ga"
x1=".5"
x2=".5"
y2="1"
gradientUnits="objectBoundingBox"
>
<stop offset="0" stop-color="#00ffb9" />
<stop offset="1" stop-color="#0cc" />
</linearGradient>
</defs>
<path
data-name="Vereinigungsmenge 41"
d="M0 126c0-.337.014-.67.041-1H0V60a12 12 0 1 1 24 0v65h-.042c.027.329.042.663.042 1a12 12 0 0 1-24 0zm50.944 8.052a12 12 0 0 1 0-16.969L99.027 69 50.944 20.919A12 12 0 0 1 67.915 3.947L116 52.03l48.083-48.084a12 12 0 0 1 16.969 16.971L132.969 69l48.084 48.084a12 12 0 0 1-16.969 16.971L116 85.971l-48.085 48.082a12 12 0 0 1-16.971 0zM0 12a12 12 0 1 1 12 12A12 12 0 0 1 0 12z"
style="fill: url(#x05mhzd7ga)"
/>
</svg>
</ix-application-header>
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,7 @@
</head>
<body>
<ix-application-header name="Test app name">
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 184.567 138"
slot="logo"
>
<defs>
<linearGradient
id="x05mhzd7ga"
x1=".5"
x2=".5"
y2="1"
gradientUnits="objectBoundingBox"
>
<stop offset="0" stop-color="#00ffb9" />
<stop offset="1" stop-color="#0cc" />
</linearGradient>
</defs>
<path
data-name="Vereinigungsmenge 41"
d="M0 126c0-.337.014-.67.041-1H0V60a12 12 0 1 1 24 0v65h-.042c.027.329.042.663.042 1a12 12 0 0 1-24 0zm50.944 8.052a12 12 0 0 1 0-16.969L99.027 69 50.944 20.919A12 12 0 0 1 67.915 3.947L116 52.03l48.083-48.084a12 12 0 0 1 16.969 16.971L132.969 69l48.084 48.084a12 12 0 0 1-16.969 16.971L116 85.971l-48.085 48.082a12 12 0 0 1-16.971 0zM0 12a12 12 0 1 1 12 12A12 12 0 0 1 0 12z"
style="fill: url(#x05mhzd7ga)"
/>
</svg>
<div slot="logo">Text Logo</div>
</ix-application-header>
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script>
</body>
Expand Down

0 comments on commit 74be7a1

Please sign in to comment.