-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(title): add support for small title (#19215)
Updates title to include `small` size and updates searchbar and UI to match native. closes #18898
- Loading branch information
1 parent
ff2aaad
commit e27962d
Showing
24 changed files
with
668 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { newE2EPage } from '@stencil/core/testing'; | ||
|
||
test('title: sizes', async () => { | ||
const page = await newE2EPage({ | ||
url: '/src/components/title/test/sizes?ionic:_testing=true' | ||
}); | ||
|
||
const compare = await page.compareScreenshot(); | ||
expect(compare).toMatchScreenshot(); | ||
}); | ||
|
||
test('title:rtl: sizes', async () => { | ||
const page = await newE2EPage({ | ||
url: '/src/components/title/test/sizes?ionic:_testing=true&rtl=true' | ||
}); | ||
|
||
const compare = await page.compareScreenshot(); | ||
expect(compare).toMatchScreenshot(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<!DOCTYPE html> | ||
<html dir="ltr"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title - Sizes</title> | ||
<meta name="viewport" | ||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<link href="../../../../../css/ionic.bundle.css" rel="stylesheet"> | ||
<link href="../../../../../scripts/testing/styles.css" rel="stylesheet"> | ||
<script src="../../../../../scripts/testing/scripts.js"></script> | ||
<script nomodule src="../../../../../dist/ionic/ionic.js"></script> | ||
<script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script> | ||
</head> | ||
|
||
<body> | ||
<ion-app> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>Settings</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>Browse</ion-title> | ||
<ion-buttons slot="end"> | ||
<ion-button>Cancel</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
<ion-toolbar> | ||
<ion-searchbar></ion-searchbar> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-header> | ||
<ion-toolbar class="hide-md"> | ||
<ion-title size="small">Choose a contact to add to Favorites</ion-title> | ||
</ion-toolbar> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-back-button default-href="#"></ion-back-button> | ||
</ion-buttons> | ||
<ion-title>Title</ion-title> | ||
<ion-title class="hide-ios" size="small">Subtitle</ion-title> | ||
<ion-buttons slot="end"> | ||
<ion-button><ion-icon slot="icon-only" name="search"></ion-icon></ion-button> | ||
<ion-button><ion-icon slot="icon-only" name="menu"></ion-icon></ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
<ion-toolbar> | ||
<ion-searchbar></ion-searchbar> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title size="small">Choose a contact to add to Favorites</ion-title> | ||
</ion-toolbar> | ||
<ion-toolbar> | ||
<ion-title>Contacts</ion-title> | ||
<ion-buttons slot="end"> | ||
<ion-button>Cancel</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
<ion-toolbar> | ||
<ion-searchbar></ion-searchbar> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-header> | ||
<ion-toolbar color="secondary"> | ||
<ion-title size="small"> | ||
Choose multiple contacts to add to your Favorites | ||
so this just goes on and on and on | ||
</ion-title> | ||
</ion-toolbar> | ||
<ion-toolbar color="secondary"> | ||
<ion-buttons slot="start"> | ||
<ion-button>Groups</ion-button> | ||
</ion-buttons> | ||
<ion-title>Contacts</ion-title> | ||
<ion-buttons slot="end"> | ||
<ion-button>Cancel</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
<ion-toolbar color="secondary"> | ||
<ion-searchbar></ion-searchbar> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content fullscreen> | ||
|
||
</ion-content> | ||
</ion-app> | ||
|
||
<style> | ||
.md .hide-md { | ||
display: none; | ||
} | ||
|
||
.ios .hide-ios { | ||
display: none; | ||
} | ||
|
||
/* testing purposes only | ||
ion-header { | ||
border-top: 1px solid red; | ||
} */ | ||
</style> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.