fix(menu-button): move font-size to host for easier customization (#18699)

fixes #18667
This commit is contained in:
Brandy Carney
2019-07-02 15:37:16 -04:00
committed by GitHub
parent c6bb2730a8
commit 876ab41ba8
3 changed files with 10 additions and 6 deletions

View File

@ -11,6 +11,8 @@
--padding-end: 5px;
height: 32px;
font-size: 31px;
}
:host(.activated) {
@ -23,10 +25,6 @@
}
}
ion-icon {
font-size: 31px;
}
// Menu Button Color: Focused
// --------------------------------------------------

View File

@ -13,12 +13,11 @@
width: 48px;
height: 48px;
}
ion-icon {
font-size: 24px;
}
// Menu Button Color: Hover
// --------------------------------------------------

View File

@ -27,6 +27,8 @@
<ion-menu-button auto-hide="false" color="secondary" class="custom"></ion-menu-button>
<ion-menu-button auto-hide="false" class="custom ion-focused"></ion-menu-button>
<ion-menu-button auto-hide="false" color="secondary" class="custom ion-focused"></ion-menu-button>
<ion-menu-button auto-hide="false" class="custom-large"></ion-menu-button>
<ion-menu-button auto-hide="false" class="custom-large ion-focused"></ion-menu-button>
<h1>Colors</h1>
<ion-menu-button auto-hide="false" color="primary"></ion-menu-button>
@ -103,6 +105,11 @@
--background-focused: rgb(255, 105, 180, .24);
}
.custom-large {
width: 84px;
height: 84px;
font-size: 44px;
}
</style>
</body>