This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
chore(text-field): Pass subelement foundations through MDCTextField super constructor #1684
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4979977
chore(textfield): Pass subelement foundations through MDCTextField su…
bonniezhou c7cc018
Fix tests
bonniezhou b8ade36
Add note to README
bonniezhou 3549f18
Remove extra code
bonniezhou 0184dac
Move constructor arguments to map
bonniezhou 6a3d0d6
Change linter statements to only affect certain lines, and update README
bonniezhou 67dd9c6
Merge branch 'master' into chore/text-field/move-foundations
bonniezhou 1b9f01b
Fix comment syntax
bonniezhou 412b7ab
Merge with master
bonniezhou 7b6feb2
Merge branch 'master' into chore/text-field/move-foundations
patrickrodee d4c6da7
Change TextField to Text Field for consistency
bonniezhou 57a411d
Some nits for better description and remove extra spaces
bonniezhou 85018b2
Merge with master
bonniezhou 180f341
Merge branch 'master' into chore/text-field/move-foundations
bonniezhou 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 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
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.
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.
FYI, this is the correct way to annotate an optional property/param. I talked to Brendan (our resident Closure Compiler expert) and crawled through the JS Style Guide and Closure Compiler JSDoc wiki, and they all seem to suggest that your style is the right one.
The rest of our code base uses a nullable type instead of
undefined
(e.g.,
{?MDCTextFieldBottomLineFoundation}
), but that's technically incorrect, and our internal Closure Compiler usually complains about it.We should probably update the rest of our components to use your style of annotations at some point.