-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'main-origin/main'
- Loading branch information
Showing
62 changed files
with
1,245 additions
and
288 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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<div style="padding: 4rem"> | ||
<ix-button class="any-class" style="margin-right: 4rem">Hover me</ix-button> | ||
<ix-tooltip for=".any-class">Simple selector</ix-tooltip> | ||
<ix-button class="any-class" aria-describedby="tooltip-1">Hover me</ix-button> | ||
<ix-tooltip id="tooltip-1" for=".any-class">Simple selector</ix-tooltip> | ||
|
||
<ix-button my-custom-special-selector="any-value">Also hover me</ix-button> | ||
<ix-tooltip for="[my-custom-special-selector='any-value']"> | ||
<ix-button my-custom-special-selector="any-value" aria-describedby="tooltip-2">Also hover me</ix-button> | ||
<ix-tooltip id="tooltip-2" for="[my-custom-special-selector='any-value']"> | ||
Custom selector | ||
</ix-tooltip> | ||
</div> |
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
--theme-modal--border-thickness: 0.0625rem; | ||
--theme-toast--border-thickness: 0rem; | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
--theme-modal--border-thickness: 0.0625rem; | ||
--theme-toast--border-thickness: 0rem; | ||
} | ||
} | ||
} |
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
55 changes: 55 additions & 0 deletions
55
packages/core/src/components/menu-avatar-item/test/menu-avatar-item.ct.ts
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,55 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 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 { test } from '@utils/test'; | ||
|
||
const html = String.raw; | ||
|
||
test('Nested dropdowns', async ({ mount, page }) => { | ||
await mount(html` | ||
<ix-menu> | ||
<ix-menu-avatar> | ||
<ix-menu-avatar-item label="test" id="submenu-01"></ix-menu-avatar-item> | ||
</ix-menu-avatar> | ||
</ix-menu> | ||
<ix-dropdown trigger="submenu-01" id="d1"> | ||
<ix-dropdown-item>SubMenuItem 1</ix-dropdown-item> | ||
<ix-dropdown-item>SubMenuItem 2</ix-dropdown-item> | ||
<ix-dropdown-item>SubMenuItem 3</ix-dropdown-item> | ||
<ix-dropdown-item id="submenu-02">SubMenuItem 4</ix-dropdown-item> | ||
</ix-dropdown> | ||
<ix-dropdown trigger="submenu-02" id="d2"> | ||
<ix-dropdown-item>SubMenuItem 1</ix-dropdown-item> | ||
<ix-dropdown-item>SubMenuItem 2</ix-dropdown-item> | ||
<ix-dropdown-item>SubMenuItem 3</ix-dropdown-item> | ||
<ix-dropdown-item>SubMenuItem 4</ix-dropdown-item> | ||
</ix-dropdown> | ||
`); | ||
|
||
const menuAvatar = page.locator('ix-menu-avatar'); | ||
await expect(menuAvatar).toBeVisible(); | ||
await menuAvatar.click(); | ||
|
||
await expect(menuAvatar.locator('ix-dropdown')).toBeVisible(); | ||
|
||
const menuAvatarItem = menuAvatar.locator('ix-menu-avatar-item').nth(0); | ||
await menuAvatarItem.click(); | ||
|
||
const dropdown1 = page.locator('#d1'); | ||
const dropdown2 = page.locator('#d2'); | ||
|
||
await expect(dropdown1).toBeVisible(); | ||
|
||
const dropdown2Trigger = dropdown1 | ||
.locator('ix-dropdown-item') | ||
.filter({ hasText: 'SubMenuItem 4' }); | ||
await dropdown2Trigger.click(); | ||
|
||
await expect(dropdown2).toBeVisible(); | ||
}); |
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
Oops, something went wrong.