Skip to content

Commit ad01563

Browse files
Remove backdrop blur for ionic theme
1 parent f6ce023 commit ad01563

12 files changed

+19
-1
lines changed

core/src/components/backdrop/backdrop.ionic.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33

44
:host {
55
background-color: rgba(globals.$ion-primitives-base-black-rgb, 0.7);
6-
backdrop-filter: blur(2px);
76
}
-469 Bytes
Loading
-447 Bytes
Loading
-469 Bytes
Loading
-458 Bytes
Loading

core/src/components/modal/test/sheet/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@
143143
>
144144
Backdrop is inactive
145145
</button>
146+
<button
147+
id="backdrop-hidden"
148+
onclick="presentModal({ backdropBreakpoint: 0.5, initialBreakpoint: 0.3, breakpoints: [0.3, 0.5, 0.7, 1], showBackdrop: false })"
149+
>
150+
Backdrop is hidden
151+
</button>
146152

147153
<button
148154
id="half-sheet"

core/src/components/modal/test/sheet/modal.e2e.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ title, screensh
4747
});
4848
});
4949
});
50+
51+
test.describe(title('sheet modal: backdrop hidden'), () => {
52+
test('should not have visual regressions', async ({ page }) => {
53+
await page.goto('/src/components/modal/test/sheet', config);
54+
const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent');
55+
56+
await page.click('#backdrop-hidden');
57+
58+
await ionModalDidPresent.next();
59+
60+
await expect(page).toHaveScreenshot(screenshot(`modal-backdrop-hidden`), { animations: 'allow' });
61+
});
62+
});
5063
});
5164

5265
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
40.2 KB
Loading
52.3 KB
Loading
35 KB
Loading

0 commit comments

Comments
 (0)