mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
fix(item): use thumbnail's size when present (#27014)
resolves #22935 --------- Co-authored-by: ionitron <hi@ionicframework.com> Co-authored-by: liamdebeasi <liamdebeasi@users.noreply.github.com>
This commit is contained in:
@ -24,4 +24,24 @@ test.describe('thumbnail: basic', () => {
|
||||
|
||||
await expect(referenceEl).toHaveScreenshot(`thumbnail-ion-item-diff-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
|
||||
test('size should be customizable in <ion-item>', async ({ page, skip }) => {
|
||||
skip.rtl();
|
||||
|
||||
test.info().annotations.push({
|
||||
type: 'issue',
|
||||
description: 'https://github.com/ionic-team/ionic-framework/issues/22935',
|
||||
});
|
||||
|
||||
await page.setContent(`
|
||||
<ion-item>
|
||||
<ion-thumbnail style="--size: 20px">
|
||||
<img src="/src/components/thumbnail/test/thumbnail.svg" />
|
||||
</ion-thumbnail>
|
||||
</ion-item>
|
||||
`);
|
||||
|
||||
const item = page.locator('ion-item');
|
||||
await expect(item).toHaveScreenshot(`thumbnail-ion-item-size-diff-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 709 B |
Binary file not shown.
|
After Width: | Height: | Size: 993 B |
Binary file not shown.
|
After Width: | Height: | Size: 839 B |
Binary file not shown.
|
After Width: | Height: | Size: 722 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 857 B |
Reference in New Issue
Block a user