-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core/drawer|inputgroup): fixed drawer display issue #1561
Open
ridvandmrc
wants to merge
13
commits into
siemens:main
Choose a base branch
from
ridvandmrc:fix/1551-drawer-style-issue
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
87e0a0c
fix(core/drawer|inputgroup): fixed drawer display issue
3e34ba2
Merge branch 'main' into fix/1551-drawer-style-issue
danielleroux eaf1bd3
Merge remote-tracking branch 'refs/remotes/origin/main' into fix/1551โฆ
matthiashader 9df7db1
fix: toggle behavior, add vrt, deprecate input-group
matthiashader 3b933cf
Merge branch 'refs/heads/main' into fix/1551-drawer-style-issue
matthiashader df35737
fix: test push
matthiashader 8ff107e
Revert "fix: test push"
matthiashader 6b68edc
fix: component doc
matthiashader 26dcf15
fix: revert changes, remove bootstrap dep
matthiashader d454797
Merge branch 'refs/heads/main' into fix/1551-drawer-style-issue
matthiashader ebf082b
fix: storybook, behavior
matthiashader 1203e18
fix: review comments
matthiashader 43b14f2
fix: adapt selector
matthiashader File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | ||
--- | ||
|
||
Update slot references for **ix-input-group**. |
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
Binary file added
BIN
+8.26 KB
...r.e2e.ts-snapshots/drawer-input-group-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
+8.3 KB
....e2e.ts-snapshots/drawer-input-group-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,37 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 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>Stencil Component Starter</title> | ||
</head> | ||
<body> | ||
<ix-drawer> | ||
<ix-input-group> | ||
<ix-icon | ||
slot="input-start" | ||
name="success" | ||
size="16"> | ||
</ix-icon> | ||
<input /> | ||
</ix-input-group> | ||
</ix-drawer> | ||
<ix-button>Click</ix-button> | ||
<script> | ||
const button = document.querySelector('ix-button'); | ||
button.addEventListener('click', () => { | ||
document.querySelector('ix-drawer').toggleDrawer(true); | ||
}); | ||
</script> | ||
<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,56 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 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 type { Components } from '@siemens/ix/components'; | ||
import type { ArgTypes, Meta, StoryObj } from '@storybook/web-components'; | ||
import { html } from 'lit'; | ||
import { makeArgTypes } from './utils/generic-render'; | ||
|
||
type Element = Components.IxDrawer; | ||
|
||
const meta = { | ||
title: 'Example/Drawer', | ||
tags: [], | ||
render: (args) => { | ||
const toggleDrawer = () => { | ||
args.show = !args.show; | ||
const drawer = document.querySelector('ix-drawer'); | ||
if (drawer) { | ||
drawer.toggleDrawer(args.show); | ||
} | ||
}; | ||
|
||
return html` | ||
<ix-drawer | ||
closeOnClickOutside=${args.closeOnClickOutside} | ||
?fullHeight=${true} | ||
@drawerClose=${() => (args.show = false)} | ||
> | ||
<span>Some content of drawer</span> | ||
</ix-drawer> | ||
<ix-button @click=${toggleDrawer}>Toggle drawer</ix-button> | ||
`; | ||
}, | ||
argTypes: makeArgTypes<Partial<ArgTypes<Element>>>('ix-drawer'), | ||
parameters: { | ||
design: { | ||
type: 'figma', | ||
url: 'https://www.figma.com/design/r2nqdNNXXZtPmWuVjIlM1Q/iX-Components---Brand-Dark?node-id=8033-151366&m=dev', | ||
}, | ||
}, | ||
} satisfies Meta<Element>; | ||
|
||
export default meta; | ||
type Story = StoryObj<Element>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
closeOnClickOutside: true, | ||
show: false, | ||
}, | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to bother again, but I just realised that it might make more sense to make el not optional and move the null check to the call of the functions. What do you think?