-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(textfield): add rows attribute #3356
Conversation
…er/spectrum-web-components into ingo/add-rows-property
…er/spectrum-web-components into ingo/add-rows-property
Tachometer resultsChromenumber-field permalink
search permalink
slider permalink
textfield permalink
Firefoxnumber-field permalink
search permalink
slider permalink
textfield permalink
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. We've got one piece left and we'll be ready to merge. Can you checkout the docs on Visual Regression Testing and update the golden images hash? Feel free to message me here or in Slack if any of that is unclear.
Thanks!
packages/textfield/src/textfield.css
Outdated
block-size: auto; | ||
resize: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines should already be covered by line 157/8 from above. Can we remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I cleaned it up. Thanks for spotting it
@@ -97,6 +97,9 @@ export class TextfieldBase extends ManageHelpText(Focusable) { | |||
@property({ type: Boolean, reflect: true }) | |||
public readonly = false; | |||
|
|||
@property({ type: Number }) | |||
public rows = -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to normalize across the file, thanks for calling that out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ingorichter this looks good to me. I can't guarantee a pre-shutdown release, but if not, look for this to be available shortly thereafter. Cheers!
Description
Adding the rows attribute to enable a multiline Textarea to show up with a predefined amount of rows. We need this feature for an existing feature where we replace all react-spectrum components with spectrum-web-components.
Related issue(s)
Motivation and context
Product required for Adobe Share Dialog
How has this been tested?
Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.