-
Notifications
You must be signed in to change notification settings - Fork 4
Add a reusable <Button/> component #274
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
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for criipto-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cedd189 to
a40798b
Compare
Trinurt
left a comment
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 like it very much 👍
jlndk
left a comment
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.
Looks really good!
Only one last set of comments about inlined svg icons. Otherwise LGTM
src/components/Button/Button.tsx
Outdated
| <svg | ||
| className={cx('h-5 w-5 animate-spin-steps', className)} | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| viewBox="0 0 512 512" | ||
| fill="currentColor" | ||
| > | ||
| <path d="M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z" /> | ||
| </svg> |
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 this be replaced with a <FontAwesomeIcon/> to prevent us having to maintain hard-coded copies of the SVG icons?
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.
src/components/URLCodeBlock.tsx
Outdated
| <svg viewBox="0 0 640 640" fill="currentColor" aria-hidden className="w-5"> | ||
| <path d="M512 416L256 416L256 96L434.7 96L512 173.3L512 416zM544 160L448 64L224 64L224 448L544 448L544 160zM128 192L96 192L96 576L416 576L416 496L384 496L384 544L128 544L128 224L176 224L176 192L128 192z" /> | ||
| </svg> |
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.
Also, can this be replaced with a <FontAwesomeIcon/>?
If not I would propose moving the svg to a dedicated icon component with a descriptive name
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.
src/components/WebhookTester.tsx
Outdated
| iconLeft={ | ||
| <svg viewBox="0 0 640 640" fill="currentColor" aria-hidden className="w-5"> | ||
| <path d="M128 523.4L128 560L160 542.2L527.1 338.3L560 320L527.1 301.7L160 97.8L128 80L128 523.4zM160 505.6L160 134.4L494.1 320L160 505.6z" /> | ||
| </svg> | ||
| } |
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.
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.
To further align the documentation with the design system.
2fb60bc to
4926396
Compare
To further align the documentation with the design system.
QA: Please check the updated buttons:
button: https://deploy-preview-274--criipto-docs.netlify.app/signatures/webhooks/tester/ (available after you input API credentials, or see screenshot).