-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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
[docs][TablePagination] Add Tailwind CSS & plain CSS introduction demo #38286
Conversation
Netlify deploy previewBundle size report |
docs/data/base/components/table-pagination/TableCustomized/tailwind/index.tsx
Outdated
Show resolved
Hide resolved
const prettierConfig = prettier.resolveConfig.sync(jsPath, { | ||
config: path.join(workspaceRoot, 'prettier.config.js'), | ||
}); | ||
const prettierFormat = (jsSource) => | ||
prettier.format(jsSource, { ...prettierConfig, filepath: jsPath }); | ||
|
||
const prettified = prettierFormat(codeWithPropTypes); | ||
const codeWithoutTsIgnoreComments = codeWithPropTypes.replace(/^\s*\/\/ @ts-ignore.*$/gm, ''); |
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.
Should we also remove ts-expect-error
, or aren't there any occurrences of 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.
I noticed while doing this that there were other occurrences, so I decided to keep the fix :)
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.
It's about @ts-ignore comments added in the tsx files that are automatically added in the .js files while running yarn docs:typescript:formatted
- @ts-ignore does not make sense in the JavaScript files.
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.
Design-wise, looks good!
However, I really think we should roll back and stop using inter font on Tailwind demo—and sometimes the slate is too bluish when compared to the gray tones we use—but that's for another PR/issue.
We haven't added it yet, no? Or maybe I misunderstand your point. Should we add the inter font on the Tailwind CSS demos? |
Sorry, I expressed myself very poorly 😅 |
I see, alright, I am creating #38464 |
Things that are done in the PR: