-
Notifications
You must be signed in to change notification settings - Fork 687
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
[Doc] css modules tutorial #2341
Conversation
|
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.
One code sample could use some tweaks, but overall looks good 👍
const { | ||
content, | ||
root, | ||
root_highPriority, | ||
root_lowPriority, | ||
root_normalPriority | ||
} = buttonOverrides; |
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.
Seems odd to destructure here only to create the exact same object shape below, and with long hand. A better example might be to show the contents of myButtonWrapper.css
, and pass it directly without destructuring, which might be more effort than it's worth (maybe don't mock up fake properties, just show those class names exist in that file).
Another reason to destructure would be when names are not exactly the same, but that's not the case here.
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.
Missed a tiny syntax error, but good improvement 👍will approve if you want to commit my suggestion.
pwa-devdocs/src/tutorials/pwa-studio-fundamentals/css-modules/index.md
Outdated
Show resolved
Hide resolved
…index.md Co-Authored-By: Tommy Wiebell <twiebell@adobe.com>
Description
This PR revises and publishes the css modules tutorial contributed by @rossmc
Related Issue
Closes PWA-304
Acceptance
any developer
Verification Stakeholders
any developer
Specification
Verification Steps
cd pwa-devdocs
yarn lint src/tutorials/pwa-studio-fundamentals/css-modules/index.md
yarn develop
Screenshots / Screen Captures (if appropriate)
Checklist