-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
react-checkbox: Replacing use of functions in makeStyles with direct use of tokens #21041
Merged
khmakoto
merged 19 commits into
microsoft:master
from
khmakoto:noFunctionsInMakeStylesReactCheckbox
Jan 8, 2022
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
81a365d
react-theme: Exporting token to css variable mapping.
khmakoto 8ebda2d
Change files
khmakoto 340702a
Updating packages based on changes to focusIndicator functions to rem…
khmakoto 1871758
Change files
khmakoto 10286a5
react-checkbox: Replacing use of functions in makeStyles with direct …
khmakoto 7351b8d
Change files
khmakoto ec9a12d
Merge branch 'master' of https://github.com/microsoft/fluentui into n…
khmakoto 2e9568e
Moving tokens.ts into src/ and out of src/global.
khmakoto 855cc2a
Moving tokens.ts into src/ and out of src/global.
khmakoto dc9114b
Fixing merge conflicts.
khmakoto 1a32009
Removing change files for private packages.
khmakoto 1593f3e
Readding unintended deleted file.
khmakoto c236edb
Merge branch 'noFunctionsInMakeStylesReactTabster' of https://github.…
khmakoto 0393160
Fixing build error.
khmakoto cc55f8f
Change files
khmakoto b6b5d39
Update @fluentui-react-checkbox-98de0bef-6373-4cbf-aa25-a2f8c808a0ac.…
khmakoto dca8adf
Fixing merge conflicts.
khmakoto 1540211
Merge branch 'master' of https://github.com/microsoft/fluentui into n…
khmakoto fa68e6d
Removing makeStyles changes, replacing wrong values with shorthands i…
khmakoto 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
7 changes: 7 additions & 0 deletions
7
change/@fluentui-make-styles-f7915eb8-5d9b-4937-9755-be6824cca627.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Adding ability to provide CSS objects to selectors in types.", | ||
"packageName": "@fluentui/make-styles", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-checkbox-98de0bef-6373-4cbf-aa25-a2f8c808a0ac.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Replacing use of functions in makeStyles with direct use of tokens.", | ||
"packageName": "@fluentui/react-checkbox", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
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
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.
Can you please add a test case for this to
packages/make-styles/src/types.test.ts
? 🙏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 wanted to spin this change as a different PR before this one went in with included tests so they could keep their separate concerns. I'll post the PR link here once I do.
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've written this as a separate issue in #21213
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.
Actually, I closed #21213 as I realized that the error in the end was actually complaining about the use of
borderColor
because it should be using shorthands instead, it was just a very weird error that didn't actually point to this, so I'll be making those changes inreact-checkbox
itself and removing any changes tomake-styles
in this PR.