From 50bc212d0b30919c136d6be60a9d458ec7d50dde Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 23 Apr 2020 12:22:19 -0400 Subject: [PATCH] feat(menu): add parts support for backdrop, container (#20978) --- core/api.txt | 2 ++ core/src/components/menu/menu.tsx | 6 ++++++ core/src/components/menu/readme.md | 8 ++++++++ core/src/components/menu/test/basic/index.html | 12 +++++++++++- 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/core/api.txt b/core/api.txt index 52a261f9cc..8e5eaa184b 100644 --- a/core/api.txt +++ b/core/api.txt @@ -651,6 +651,8 @@ ion-menu,css-prop,--max-width ion-menu,css-prop,--min-height ion-menu,css-prop,--min-width ion-menu,css-prop,--width +ion-menu,part,backdrop +ion-menu,part,container ion-menu-button,shadow ion-menu-button,prop,autoHide,boolean,true,false,false diff --git a/core/src/components/menu/menu.tsx b/core/src/components/menu/menu.tsx index 28234ac2cf..12193e24d6 100644 --- a/core/src/components/menu/menu.tsx +++ b/core/src/components/menu/menu.tsx @@ -13,6 +13,10 @@ const mdEasing = 'cubic-bezier(0.0,0.0,0.2,1)'; const iosEasingReverse = 'cubic-bezier(1, 0, 0.68, 0.28)'; const mdEasingReverse = 'cubic-bezier(0.4, 0, 0.6, 1)'; +/** + * @part container - The container for the menu content. + * @part backdrop - The backdrop that appears over the main content when the menu is open. + */ @Component({ tag: 'ion-menu', styleUrls: { @@ -569,6 +573,7 @@ AFTER: >