-
Notifications
You must be signed in to change notification settings - Fork 106
feat(text-area): add pf-text-area #2639
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
11 commits
Select commit
Hold shift + click to select a range
60a3dcc
feat(core): internals controller improvements
bennypowers e3a69ba
feat(text-area): add pf-text-area
bennypowers e08bb65
fix(text-area): styles
bennypowers 3632605
fix(text-area): styles and states
bennypowers c13156a
fix: allow for build
bennypowers 88c6834
Merge branch 'main' into feat/pf-text-area
bennypowers bd7d208
refactor(core): remove comments and empty blocks
bennypowers cc8382d
docs(text-area): add css prop docs
zeroedin 3c62d64
fix(text-area): resize class
zeroedin 747eb8d
fix(text-area): add resize both css rule
zeroedin d135c52
test(text-area): disable function tests
zeroedin 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| --- | ||
| "@patternfly/pfe-core": minor | ||
| --- | ||
| `InternalsController`: added `computedLabelText` read-only property |
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,4 @@ | ||
| --- | ||
| "@patternfly/pfe-core": minor | ||
| --- | ||
| `InternalsController`: reflect all methods and properties from `ElementInternals` |
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,16 @@ | ||
| --- | ||
| "@patternfly/elements": minor | ||
| --- | ||
| ✨ Added `<pf-text-area>` | ||
|
|
||
| ```html | ||
| <form> | ||
| <pf-text-area id="textarea" | ||
| name="comments" | ||
| placeholder="OpenShift enabled our team to..." | ||
| resize="vertical" | ||
| auto-resize | ||
| required | ||
| ></pf-text-area> | ||
| </form> | ||
| ``` |
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,11 @@ | ||
| # Text Area | ||
| Add a description of the component here. | ||
|
|
||
| ## Usage | ||
| Describe how best to use this web component along with best practices. | ||
|
|
||
| ```html | ||
| <pf-text-area> | ||
|
|
||
| </pf-text-area> | ||
| ``` |
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,6 @@ | ||
| <pf-text-area auto-resize></pf-text-area> | ||
|
|
||
| <script type="module"> | ||
| import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
| </script> | ||
|
|
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,6 @@ | ||
| <pf-text-area disabled></pf-text-area> | ||
|
|
||
| <script type="module"> | ||
| import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
| </script> | ||
|
|
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,6 @@ | ||
| <pf-text-area resize="horizontal"></pf-text-area> | ||
|
|
||
| <script type="module"> | ||
| import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
| </script> | ||
|
|
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,9 @@ | ||
| <pf-text-area required></pf-text-area> | ||
|
|
||
| <script type="module"> | ||
| import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
| const textarea = document.querySelector('pf-text-area'); | ||
| await textarea.updateComplete; | ||
| textarea.checkValidity(); | ||
| </script> | ||
|
|
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,6 @@ | ||
| <pf-text-area></pf-text-area> | ||
|
|
||
| <script type="module"> | ||
| import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
| </script> | ||
|
|
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,6 @@ | ||
| <pf-text-area readonly value="I am the very model of a modern major general"></pf-text-area> | ||
|
|
||
| <script type="module"> | ||
| import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
| </script> | ||
|
|
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,13 @@ | ||
| <form> | ||
| <pf-text-area required></pf-text-area> | ||
| <pf-button>Validate</pf-button> | ||
| </form> | ||
|
|
||
| <script type="module"> | ||
| import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
| document.querySelector('form').addEventListener('submit', event => { | ||
| event.preventDefault(); | ||
| document.querySelector('pf-text-area').checkValidity(); | ||
| }); | ||
| </script> | ||
|
|
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,6 @@ | ||
| <pf-text-area resize="vertical"></pf-text-area> | ||
|
|
||
| <script type="module"> | ||
| import '@patternfly/elements/pf-text-area/pf-text-area.js'; | ||
| </script> | ||
|
|
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,17 @@ | ||
| {% renderOverview %} | ||
| <pf-text-area></pf-text-area> | ||
| {% endrenderOverview %} | ||
|
|
||
| {% band header="Usage" %}{% endband %} | ||
|
|
||
| {% renderSlots %}{% endrenderSlots %} | ||
|
|
||
| {% renderAttributes %}{% endrenderAttributes %} | ||
|
|
||
| {% renderMethods %}{% endrenderMethods %} | ||
|
|
||
| {% renderEvents %}{% endrenderEvents %} | ||
|
|
||
| {% renderCssCustomProperties %}{% endrenderCssCustomProperties %} | ||
|
|
||
| {% renderCssParts %}{% endrenderCssParts %} |
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.