diff --git a/core/src/components/chip/chip.scss b/core/src/components/chip/chip.scss index 026b059e3b..29f8ed95b0 100644 --- a/core/src/components/chip/chip.scss +++ b/core/src/components/chip/chip.scss @@ -27,8 +27,6 @@ font-family: $font-family-base; font-size: 14px; - line-height: 1; - cursor: pointer; overflow: hidden; diff --git a/core/src/components/chip/test/basic/chip.e2e.ts b/core/src/components/chip/test/basic/chip.e2e.ts index 4ae7139f71..a7712de6e6 100644 --- a/core/src/components/chip/test/basic/chip.e2e.ts +++ b/core/src/components/chip/test/basic/chip.e2e.ts @@ -9,4 +9,28 @@ test.describe('chip: rendering', () => { expect(await page.screenshot()).toMatchSnapshot(`chip-basic-${page.getSnapshotSettings()}.png`); }); + + test('should not clip descenders in item', async ({ page, skip }) => { + skip.rtl(); + skip.mode('md'); + + test.info().annotations.push({ + type: 'issue', + description: 'https://github.com/ionic-team/ionic-framework/issues/18313', + }); + + await page.setContent(` + + + + Agreements + + + + `); + + const chip = page.locator('ion-chip'); + + expect(await chip.screenshot()).toMatchSnapshot(`chip-descender-${page.getSnapshotSettings()}.png`); + }); }); diff --git a/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Chrome-linux.png b/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Chrome-linux.png new file mode 100644 index 0000000000..a86b252d97 Binary files /dev/null and b/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Chrome-linux.png differ diff --git a/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Firefox-linux.png b/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Firefox-linux.png new file mode 100644 index 0000000000..a0ccf687a1 Binary files /dev/null and b/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Firefox-linux.png differ diff --git a/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Safari-linux.png b/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Safari-linux.png new file mode 100644 index 0000000000..3b669318cc Binary files /dev/null and b/core/src/components/chip/test/basic/chip.e2e.ts-snapshots/chip-descender-ios-ltr-Mobile-Safari-linux.png differ