-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat(react): add svg logo for <DevMode/>
#535
Conversation
🦋 Changeset detectedLatest commit: dfb52ad The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #535 +/- ##
==========================================
- Coverage 84.36% 84.33% -0.04%
==========================================
Files 29 29
Lines 467 466 -1
Branches 109 108 -1
==========================================
- Hits 394 393 -1
Misses 63 63
Partials 10 10
|
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'm so happy to see our logo in there!!! However, our logo is a white base.... I feel like we need a background color. I've attached a video of me testing it on a white screen.
2024-01-03.12.07.45.mov
<stop stopColor="#FF0000" /> | ||
<stop offset="1" stopColor="#FF0000" stopOpacity="0" /> |
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 anyone tell me why these red colors are being used in the SVG?
This line wasn't the only one that I saw #FF0000
in, so I was a little puzzled.
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.
Thanks for the confirmation!!!
onMouseEnter={() => setIsHover(true)} | ||
onMouseLeave={() => setIsHover(false)} |
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'm wondering if we need to call useState
to control hover state.
Since we can't control the hover state from inline CSS, I guess it's true that we can only give the hover effect by controlling the state via useState
at this point.
But in essence, I don't see how adding a hover state to this UI can provide any value to the user.
Personally, I think a hover effect is meant to encourage clicks, but since DevMode
is something that the user will do on their own when they need to
Personally, I think the hover effect is used to encourage clicking, but 'DevMode' assumes that the user will press it when they need to.
To summarize, do we need to use useState
to control the hover state? is my opinion.
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.
Got it! Thanks for the confirmation!
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.
How can we improve SVGs not showing up on a screen with a white background?
How about a black background color?
I added backgroundColor: black for |
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.
LGTM!! Lets Go !!
fix #503 # Overview I add svg logo for `<DevMode/>` <!-- A clear and concise description of what this pr is about. -->  ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md) 2. I added documents and tests. --------- Co-authored-by: Minsoo Kim <[email protected]>
fix #503 # Overview I add svg logo for `<DevMode/>` <!-- A clear and concise description of what this pr is about. -->  ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md) 2. I added documents and tests. ---------
fix #503 # Overview I add svg logo for `<DevMode/>` <!-- A clear and concise description of what this pr is about. -->  ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md) 2. I added documents and tests. --------- Co-authored-by: Minsoo Kim <[email protected]>
fix #503 # Overview I add svg logo for `<DevMode/>` <!-- A clear and concise description of what this pr is about. -->  ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md) 2. I added documents and tests. --------- Co-authored-by: Minsoo Kim <[email protected]>
fix #503
Overview
I add svg logo for
<DevMode/>
PR Checklist