Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions core/src/components/popover/popover.ionic.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use "../../themes/ionic/ionic.globals.scss" as globals;
@use "./popover.common.scss";

// Ionic Popover
// --------------------------------------------------

:host {
--width: 250px;
--max-height: 90%;
--box-shadow: #{globals.$ion-elevation-4};
--backdrop-opacity: 0.3;
}

.popover-content {
@include globals.border-radius(globals.$ion-border-radius-400);
@include globals.transform-origin(start, top);
}

.popover-viewport {
transition-delay: 100ms;
}
2 changes: 1 addition & 1 deletion core/src/components/popover/popover.ios.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "./popover";
@import "./popover.common.scss";
@import "./popover.ios.vars";

// iOS Popover
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/popover/popover.md.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "./popover";
@import "./popover.common.scss";
@import "./popover.md.vars";

// Material Design Popover
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/popover/popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import { configureDismissInteraction, configureKeyboardInteraction, configureTri
styleUrls: {
ios: 'popover.ios.scss',
md: 'popover.md.scss',
ionic: 'popover.md.scss',
ionic: 'popover.ionic.scss',
},
shadow: true,
})
Expand Down
4 changes: 2 additions & 2 deletions core/src/components/popover/test/basic/popover.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { configs, test } from '@utils/test/playwright';

import { PopoverFixture } from '../fixture';

configs().forEach(({ title, screenshot, config }) => {
configs({ modes: ['md', 'ios', 'ionic-md'] }).forEach(({ title, screenshot, config }) => {
test.describe(title('popover: rendering'), async () => {
test('should not have visual regressions', async ({ page }) => {
const popoverFixture = new PopoverFixture(page);
Expand All @@ -18,7 +18,7 @@ configs().forEach(({ title, screenshot, config }) => {
/**
* This behavior does not vary across directions.
*/
configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
configs({ directions: ['ltr'], modes: ['md', 'ios', 'ionic-md'] }).forEach(({ title, screenshot, config }) => {
test.describe(title('popover: rendering variants'), async () => {
let popoverFixture!: PopoverFixture;
test.beforeEach(async ({ page }) => {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading