-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/ix-input/ix-number-input|ix-date-input): prevent overlapping…
… of stepper-buttons and value (#1672) Co-authored-by: Julian Lamplmair <151610373+jul-lam@users.noreply.github.com> Co-authored-by: AndreasBerliner <41509230+AndreasBerliner@users.noreply.github.com> Co-authored-by: Andreas Berliner <andreas.berliner@siemens.com> Co-authored-by: jul-lam <julian.lamplmair.ext@siemens.com> Co-authored-by: Lukas Maurer <lukas.maurer@siemens.com>
- Loading branch information
1 parent
3f5d0a4
commit 4558698
Showing
22 changed files
with
372 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siemens/ix': patch | ||
--- | ||
|
||
Fix initial overlapping between value and end slots on `ix-input`, `ix-number-input` and `ix-date-input` |
17 changes: 17 additions & 0 deletions
17
packages/angular-test-app/src/preview-examples/input-types.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2025 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/* | ||
* Styles get overwritten by html-test-app css files each build or dev task. | ||
* If you want to modify the example styles do this only inside the html-test-app | ||
*/ | ||
|
||
ix-input { | ||
margin-bottom: 1rem; | ||
width: 11rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2025 Siemens AG | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<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>Date Input Test</title> | ||
<style> | ||
.date-input-wrapper { | ||
padding: 1rem; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="date-input-wrapper"> | ||
<h4>Default</h4> | ||
<ix-date-input></ix-date-input> | ||
|
||
<h4>Disabled</h4> | ||
<ix-date-input value='1970/01/01' disabled></ix-date-input> | ||
|
||
<h4>Label</h4> | ||
<ix-date-input | ||
label='Begin' | ||
name='begin' | ||
helper-text='Some helper text' | ||
value='1970/01/01' | ||
></ix-date-input> | ||
|
||
</div> | ||
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2025 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { expect } from '@playwright/test'; | ||
import { regressionTest } from '@utils/test'; | ||
|
||
regressionTest.describe('date-input', () => { | ||
regressionTest('basic', async ({ page }) => { | ||
await page.goto('date-input/basic'); | ||
await expect(page).toHaveScreenshot(); | ||
}); | ||
}); |
Binary file added
BIN
+13.6 KB
...put.e2e.ts-snapshots/date-input-basic-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.3 KB
...ut.e2e.ts-snapshots/date-input-basic-1-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2025 Siemens AG | ||
SPDX-License-Identifier: MIT | ||
--> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<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>Common dynamic test for inputs</title> | ||
<style> | ||
.input-wrapper { | ||
padding: 1rem; | ||
} | ||
.input-container { | ||
display: none; | ||
margin: 1rem; | ||
} | ||
.display-none { | ||
display: none; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="input-wrapper"> | ||
<ix-button onclick="displayInputs()">Display inputs</ix-button> | ||
<div class="input-container" id="input-container"> | ||
<ix-input value="Lorem ipsum"> | ||
<ix-icon-button slot="start" icon="star" size="24"></ix-icon-button> | ||
<ix-icon slot="end" name="info" class="display-none"></ix-icon> | ||
</ix-input> | ||
</div> | ||
<div class="input-container" id="number-input-container"> | ||
<ix-number-input show-stepper-buttons value="0"> | ||
<ix-icon slot="end" name="info" class="display-none"></ix-icon> | ||
</ix-number-input> | ||
</div> | ||
<div class="input-container" id="date-input-container"> | ||
<ix-date-input> | ||
<ix-icon slot="end" name="info" class="display-none"></ix-icon> | ||
</ix-date-input> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
function displayInputs() { | ||
const containers = document.getElementsByClassName('input-container'); | ||
for (const container of containers) { | ||
container.style.display = 'block'; | ||
} | ||
} | ||
</script> | ||
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.