-
Notifications
You must be signed in to change notification settings - Fork 13.4k
feat(textarea): add label slot #27647
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 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9fbb867
feat(textarea): add label slot
liamdebeasi 438b85b
add tests
liamdebeasi 390821b
fix: address whitespace issue with textarea
liamdebeasi cf85fa4
chore(): add updated snapshots
Ionitron 178cdeb
fix: hide notch with no label
liamdebeasi 9a6d6fb
lint
liamdebeasi 2bbeb9c
remove .only
liamdebeasi 6cf3fc1
Update core/src/components/textarea/test/label-placement/textarea.e2e.ts
liamdebeasi 8fe23e6
Update core/src/components/textarea/test/label-placement/textarea.e2e.ts
liamdebeasi de54350
fix experimental docs
liamdebeasi 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ | |
| <main> | ||
| <h1>Textarea - a11y</h1> | ||
|
|
||
| <ion-textarea><div slot="label">Slotted Label</div></ion-textarea><br /> | ||
| <ion-textarea label="my label"></ion-textarea><br /> | ||
| <ion-textarea aria-label="my aria label"></ion-textarea><br /> | ||
| <ion-textarea label="Email" label-placement="stacked" value="[email protected]"></ion-textarea> | ||
|
|
||
Binary file modified
BIN
-221 Bytes
(98%)
...a.e2e.ts-snapshots/textarea-autogrow-word-break-ios-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-632 Bytes
(98%)
....e2e.ts-snapshots/textarea-autogrow-word-break-ios-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-217 Bytes
(98%)
...a.e2e.ts-snapshots/textarea-autogrow-word-break-ios-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-222 Bytes
(98%)
...ea.e2e.ts-snapshots/textarea-autogrow-word-break-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-575 Bytes
(98%)
...a.e2e.ts-snapshots/textarea-autogrow-word-break-md-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-202 Bytes
(97%)
...ea.e2e.ts-snapshots/textarea-autogrow-word-break-md-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file modified
BIN
-2.06 KB
(87%)
...ll/textarea.e2e.ts-snapshots/textarea-fill-solid-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.16 KB
(80%)
...l/textarea.e2e.ts-snapshots/textarea-fill-solid-md-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.99 KB
(87%)
...ll/textarea.e2e.ts-snapshots/textarea-fill-solid-md-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.06 KB
(87%)
...ll/textarea.e2e.ts-snapshots/textarea-fill-solid-md-rtl-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.15 KB
(80%)
...l/textarea.e2e.ts-snapshots/textarea-fill-solid-md-rtl-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.99 KB
(87%)
...ll/textarea.e2e.ts-snapshots/textarea-fill-solid-md-rtl-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file added
BIN
+7.57 KB
...ea.e2e.ts-snapshots/textarea-label-slot-truncate-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.62 KB
...a.e2e.ts-snapshots/textarea-label-slot-truncate-md-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.21 KB
...ea.e2e.ts-snapshots/textarea-label-slot-truncate-md-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.57 KB
...extarea.e2e.ts-snapshots/textarea-label-truncate-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.62 KB
...xtarea.e2e.ts-snapshots/textarea-label-truncate-md-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.21 KB
...extarea.e2e.ts-snapshots/textarea-label-truncate-md-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-7.82 KB
...napshots/textarea-placement-end-label-truncated-ios-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-3.3 KB
...apshots/textarea-placement-end-label-truncated-ios-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-7.51 KB
...napshots/textarea-placement-end-label-truncated-ios-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-7 KB
...napshots/textarea-placement-end-label-truncated-ios-rtl-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-3.04 KB
...apshots/textarea-placement-end-label-truncated-ios-rtl-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-6.72 KB
...napshots/textarea-placement-end-label-truncated-ios-rtl-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-7.93 KB
...snapshots/textarea-placement-end-label-truncated-md-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-3.07 KB
...napshots/textarea-placement-end-label-truncated-md-ltr-Mobile-Firefox-linux.png
Diff not rendered.
Binary file removed
BIN
-7.59 KB
...snapshots/textarea-placement-end-label-truncated-md-ltr-Mobile-Safari-linux.png
Diff not rendered.
Binary file removed
BIN
-7.6 KB
...snapshots/textarea-placement-end-label-truncated-md-rtl-Mobile-Chrome-linux.png
Diff not rendered.
Binary file removed
BIN
-3.15 KB
...napshots/textarea-placement-end-label-truncated-md-rtl-Mobile-Firefox-linux.png
Diff not rendered.
Binary file removed
BIN
-7.16 KB
...snapshots/textarea-placement-end-label-truncated-md-rtl-Mobile-Safari-linux.png
Diff not rendered.
Binary file removed
BIN
-3.25 KB
...shots/textarea-placement-start-label-truncated-ios-ltr-Mobile-Firefox-linux.png
Diff not rendered.
Binary file removed
BIN
-7.48 KB
...pshots/textarea-placement-start-label-truncated-ios-ltr-Mobile-Safari-linux.png
Diff not rendered.
Binary file removed
BIN
-6.97 KB
...pshots/textarea-placement-start-label-truncated-ios-rtl-Mobile-Chrome-linux.png
Diff not rendered.
Binary file removed
BIN
-3.06 KB
...shots/textarea-placement-start-label-truncated-ios-rtl-Mobile-Firefox-linux.png
Diff not rendered.
Binary file removed
BIN
-6.7 KB
...pshots/textarea-placement-start-label-truncated-ios-rtl-Mobile-Safari-linux.png
Diff not rendered.
Binary file removed
BIN
-7.91 KB
...apshots/textarea-placement-start-label-truncated-md-ltr-Mobile-Chrome-linux.png
Diff not rendered.
Binary file removed
BIN
-3.01 KB
...pshots/textarea-placement-start-label-truncated-md-ltr-Mobile-Firefox-linux.png
Diff not rendered.
Binary file removed
BIN
-7.59 KB
...apshots/textarea-placement-start-label-truncated-md-ltr-Mobile-Safari-linux.png
Diff not rendered.
Binary file removed
BIN
-7.57 KB
...apshots/textarea-placement-start-label-truncated-md-rtl-Mobile-Chrome-linux.png
Diff not rendered.
Binary file removed
BIN
-3.12 KB
...pshots/textarea-placement-start-label-truncated-md-rtl-Mobile-Firefox-linux.png
Diff not rendered.
Binary file removed
BIN
-7.13 KB
...apshots/textarea-placement-start-label-truncated-md-rtl-Mobile-Safari-linux.png
Diff not rendered.
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,98 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en" dir="ltr"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <title>Textarea - Slot</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> | ||
| <style> | ||
| .grid { | ||
| display: grid; | ||
| grid-template-columns: repeat(3, minmax(250px, 1fr)); | ||
| grid-row-gap: 20px; | ||
| grid-column-gap: 20px; | ||
| } | ||
| h2 { | ||
| font-size: 12px; | ||
| font-weight: normal; | ||
|
|
||
| color: #6f7378; | ||
|
|
||
| margin-top: 10px; | ||
| } | ||
| @media screen and (max-width: 800px) { | ||
| .grid { | ||
| grid-template-columns: 1fr; | ||
| padding: 0; | ||
| } | ||
| } | ||
|
|
||
| .required { | ||
| color: red; | ||
| } | ||
| </style> | ||
| </head> | ||
|
|
||
| <body> | ||
| <ion-app> | ||
| <ion-header> | ||
| <ion-toolbar> | ||
| <ion-title>Textarea - Slot</ion-title> | ||
| </ion-toolbar> | ||
| </ion-header> | ||
|
|
||
| <ion-content id="content" class="ion-padding"> | ||
| <div class="grid"> | ||
| <div class="grid-item"> | ||
| <h2>No Fill / Start</h2> | ||
| <ion-textarea label-placement="start" value="[email protected]"> | ||
| <div slot="label">Email <span class="required">*</span></div> | ||
| </ion-textarea> | ||
| </div> | ||
|
|
||
| <div class="grid-item"> | ||
| <h2>Solid / Start</h2> | ||
| <ion-textarea label-placement="start" fill="solid" value="[email protected]"> | ||
| <div slot="label">Email <span class="required">*</span></div> | ||
| </ion-textarea> | ||
| </div> | ||
|
|
||
| <div class="grid-item"> | ||
| <h2>Outline / Start</h2> | ||
| <ion-textarea label-placement="start" fill="outline" value="[email protected]"> | ||
| <div slot="label">Email <span class="required">*</span></div> | ||
| </ion-textarea> | ||
| </div> | ||
|
|
||
| <div class="grid-item"> | ||
| <h2>No Fill / Floating</h2> | ||
| <ion-textarea label-placement="floating" value="[email protected]"> | ||
| <div slot="label">Email <span class="required">*</span></div> | ||
| </ion-textarea> | ||
| </div> | ||
|
|
||
| <div class="grid-item"> | ||
| <h2>Solid / Floating</h2> | ||
| <ion-textarea label-placement="floating" fill="solid" value="[email protected]"> | ||
| <div slot="label">Email <span class="required">*</span></div> | ||
| </ion-textarea> | ||
| </div> | ||
|
|
||
| <div class="grid-item"> | ||
| <h2>Outline / Floating</h2> | ||
| <ion-textarea label-placement="floating" fill="outline" value="[email protected]"> | ||
| <div slot="label">Email <span class="required">*</span></div> | ||
| </ion-textarea> | ||
| </div> | ||
| </div> | ||
| </ion-content> | ||
| </ion-app> | ||
| </body> | ||
| </html> |
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
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.