-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
fix utility props value type about override the Theme
interface
#345
Closed
strozw
wants to merge
13
commits into
styled-components:main
from
strozw:fix_style_props_value_type_in_system_packages
Closed
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7a430a9
fix ThemeNamespaceValue type
strozw 1dbec76
fix `index.test.ts` type warning
strozw def25d8
add `@types/react-dom`
strozw 7aaa6d3
update `packages/styled-components` tests
strozw e0942c5
update `packages/emotion` tests
strozw ecd00c2
remove unnecessary comment
strozw 2fad6a9
update typescript document for emotion
strozw 038f3bc
Revert "fix ThemeNamespaceValue type"
strozw 57d1abf
update package-lock.json
strozw ddf9537
Update SystemProps to able to use values not defined in the theme wit…
strozw 09ea4eb
Fixed `ThemeGetter` type to match the implementation of `themeGetter`
strozw b46291d
Fixed `ColProps` and, `col` props implementation when `false` are pa…
strozw 5375b4c
Fixed `RowProps` and, `row` props implementation when `false` are pa…
strozw 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
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.
I don't think the fix is correct.
ThemeNamespaceValue
means a value in the theme namespace, nothing else. However, I see what you want to fix, but I think it is not the right place to do it.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.
Thank you for your review.
Sure, my fix wasn't fit for name.
Read the code again and investigate the appropriate corrections.
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.
1st, I reverted prev changes, and changed SystemProp insted of
ThemeNamespaeceValue
for fix utility props. I think this type name means utility props, but what do you think?2nd, above changes is not cover same problem about each themeGetter. so I changed
ThemeGetter
for it.3rd, the first change on SystemProps found an issue where
col
androw
props didn't support false, so we fixed each one.