MOBILE-4362 styles: Transparent backdrop on popovers

main
Pau Ferrer Ocaña 2023-10-05 12:46:54 +02:00
parent 0660fb56c0
commit ebd4eec500
6 changed files with 6 additions and 4 deletions

View File

@ -203,7 +203,6 @@ export class AddonModDataActionComponent implements OnInit {
await CoreDomUtils.openPopover({ await CoreDomUtils.openPopover({
component: AddonModDataActionsMenuComponent, component: AddonModDataActionsMenuComponent,
componentProps: { items }, componentProps: { items },
showBackdrop: true,
id: 'actionsmenu-popover', id: 'actionsmenu-popover',
event, event,
}); });

View File

@ -22,6 +22,7 @@
--border-color: var(--core-combobox-border-color); --border-color: var(--core-combobox-border-color);
--border-style: solid; --border-style: solid;
--border-width: var(--core-combobox-border-width); --border-width: var(--core-combobox-border-width);
--border-radius: var(--radius-xs);
--box-shadow: var(--core-combobox-box-shadow); --box-shadow: var(--core-combobox-box-shadow);

View File

@ -185,7 +185,6 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy {
title: this.title, title: this.title,
items: this.items, items: this.items,
}, },
showBackdrop: true,
id: this.uniqueId, id: this.uniqueId,
}); });

View File

@ -139,7 +139,6 @@ export class CoreCourseModuleCompletionComponent
componentProps: { componentProps: {
completion: this.completion, completion: this.completion,
}, },
showBackdrop: true,
event: { target } as Event, event: { target } as Event,
}); });
} else { } else {

View File

@ -2191,7 +2191,7 @@ export const CoreDomUtils = makeSingleton(CoreDomUtilsProvider);
/** /**
* Options for the openPopover function. * Options for the openPopover function.
*/ */
export type OpenPopoverOptions = PopoverOptions & { export type OpenPopoverOptions = Omit<PopoverOptions, 'showBackdrop'> & {
waitForDismissCompleted?: boolean; waitForDismissCompleted?: boolean;
}; };

View File

@ -1899,6 +1899,10 @@ ion-popover {
margin-top: 2px; margin-top: 2px;
margin-bottom: 2px; margin-bottom: 2px;
} }
// Never show backdrop on popovers
ion-backdrop {
background: transparent;
}
} }
/* /*