-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(feedback): New feedback button + form design
New design based on Jesse mocks
- Loading branch information
Showing
5 changed files
with
87 additions
and
75 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,31 +1,44 @@ | ||
import React from 'react'; | ||
import styled from '@emotion/styled'; | ||
|
||
import feedbackIcon from '../../logos/feedback.svg'; | ||
|
||
const Button = styled.button` | ||
position: fixed; | ||
right: 0px; | ||
bottom: 50%; | ||
transform: translate(25%, 50%) rotate(-90deg); | ||
background-color: #fff; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
color: #231c3d; | ||
right: 1rem; | ||
bottom: 1rem; | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
border: 1.5px solid rgba(41, 35, 47, 0.13); | ||
border-radius: 12px; | ||
background: #fff; | ||
box-shadow: 0px 4px 24px 0px rgba(43, 34, 51, 0.12); | ||
cursor: pointer; | ||
font-size: 14px; | ||
font-weight: 600; | ||
padding: 6px 16px; | ||
text-align: center; | ||
padding: 12px 16px; | ||
text-decoration: none; | ||
z-index: 9000; | ||
&:hover { | ||
background-color: #eee; | ||
} | ||
&:focus-visible { | ||
outline: 1px solid #79628c; | ||
background-color: #eee; | ||
`; | ||
|
||
const ButtonText = styled.span` | ||
@media (max-width: 576px) { | ||
display: none; | ||
} | ||
`; | ||
|
||
export function FeedbackButton(props) { | ||
return <Button {...props}>Feedback</Button>; | ||
return ( | ||
<Button {...props}> | ||
<img src={feedbackIcon} alt="Report a bug icon" /> | ||
<ButtonText>Report a Bug</ButtonText> | ||
</Button> | ||
); | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.