mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
docs(previews): update preview tests to have translucent white toolbars
to make ben happy
This commit is contained in:
@ -13,6 +13,11 @@
|
||||
<ion-app>
|
||||
<ion-nav root="page-one"></ion-nav>
|
||||
</ion-app>
|
||||
<style>
|
||||
ion-toolbar {
|
||||
--background: white;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
@ -21,12 +26,12 @@
|
||||
async connectedCallback() {
|
||||
this.innerHTML = `
|
||||
|
||||
<ion-header>
|
||||
<ion-header translucent>
|
||||
<ion-toolbar>
|
||||
<ion-title>Page One</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content padding>
|
||||
<ion-content padding fullscreen>
|
||||
<h1>Page One</h1>
|
||||
<ion-nav-set-root component="page-two">
|
||||
<ion-button class="next">Go to Page Two</ion-button>
|
||||
@ -40,12 +45,12 @@
|
||||
async connectedCallback() {
|
||||
this.innerHTML = `
|
||||
|
||||
<ion-header>
|
||||
<ion-header translucent>
|
||||
<ion-toolbar>
|
||||
<ion-title>Page Two</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content padding>
|
||||
<ion-content padding fullscreen>
|
||||
<h1>Page Two</h1>
|
||||
<ion-nav-set-root component="page-three">
|
||||
<ion-button class="next">Go to Page Three</ion-button>
|
||||
@ -58,12 +63,12 @@
|
||||
class ThirdPage extends HTMLElement {
|
||||
async connectedCallback() {
|
||||
this.innerHTML = `
|
||||
<ion-header>
|
||||
<ion-header translucent>
|
||||
<ion-toolbar>
|
||||
<ion-title>Page Three</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content padding>
|
||||
<ion-content padding fullscreen>
|
||||
<h1>Page Three</h1>
|
||||
</ion-content>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user