mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
fix(back-button): MD ripple now accounts for --ripple-color (#23749)
resolves #23748
This commit is contained in:
@ -92,6 +92,13 @@
|
||||
font-kerning: none;
|
||||
}
|
||||
|
||||
// Back Button Ripple effect
|
||||
// --------------------------------------------------
|
||||
|
||||
ion-ripple-effect {
|
||||
color: var(--ripple-color);
|
||||
}
|
||||
|
||||
|
||||
// Back Button with Color
|
||||
// --------------------------------------------------
|
||||
@ -241,4 +248,4 @@ ion-icon {
|
||||
|
||||
:host(.in-toolbar:not(.in-toolbar-color)) {
|
||||
color: #{var(--ion-toolbar-color, var(--color))};
|
||||
}
|
||||
}
|
||||
|
@ -78,6 +78,8 @@
|
||||
<ion-back-button color="secondary" class="custom"></ion-back-button>
|
||||
<ion-back-button class="custom ion-focused"></ion-back-button>
|
||||
<ion-back-button color="secondary" class="custom ion-focused"></ion-back-button>
|
||||
<ion-back-button class="ripple"></ion-back-button>
|
||||
<ion-back-button class="ripple" color="primary"></ion-back-button>
|
||||
</p>
|
||||
|
||||
<ion-toolbar>
|
||||
@ -195,6 +197,10 @@
|
||||
--ion-toolbar-background: #222;
|
||||
--ion-toolbar-color: #ddd;
|
||||
}
|
||||
|
||||
.ripple {
|
||||
--ripple-color: red;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
|
Reference in New Issue
Block a user