-
Notifications
You must be signed in to change notification settings - Fork 13.4k
feat(title): add support for small title #19215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
35fd2fa
refactor(toast): remove showCloseButton and closeButtonText (#18957)
liamdebeasi 6f2f7fc
refactor(): deprecate web component controllers (#19109)
manucorporat 52c41f3
feat(title): add support for small title
brandyscarney 412b0bd
style(toolbar): disable stylelint
brandyscarney aea6d13
test(title): update sizes test
brandyscarney e2cfd8f
chore(toolbar): build usage docs
brandyscarney b548faf
Update core/src/components/searchbar/searchbar.tsx
brandyscarney 2fb13c4
test(title): remove waits
brandyscarney 4e07cf7
fix(title): remove default size, emit style for size on connected
brandyscarney 5823ce2
chore: build and lint fixes
brandyscarney 7d0e90c
fix(title): add styling for MD small title
brandyscarney 106d972
fix(title): update class reference
brandyscarney a804b11
git(revert): revert bad rebase
brandyscarney b120b1b
style: ending line
brandyscarney 9b8541a
Merge branch 'master' into feat-header-note
brandyscarney bf706bc
chore: build
brandyscarney 66d4e4a
docs(title): update usage
brandyscarney 8fa1504
test(title): switch to undefined
brandyscarney 6d74866
fix(title): add styles back for large
brandyscarney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.