- Notifications
You must be signed in to change notification settings - Fork928
feat: Add LicenseBanner#3568
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
f9566ba
7a6dd98
0b6e336
dc62449
5c208ce
0cf73fd
3cf35aa
c0cdf8a
0aebe44
ac2b5ae
c55cba6
77dd18b
94f8b51
69f89ef
5d00122
a8e6341
4d55a33
66e75bc
60e310b
95c5c2d
62d090b
da041eb
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3,10 +3,10 @@ import KeyboardArrowDown from "@material-ui/icons/KeyboardArrowDown" | ||
import KeyboardArrowUp from "@material-ui/icons/KeyboardArrowUp" | ||
import { FC } from "react" | ||
const useStyles = makeStyles<Theme, ArrowProps>((theme: Theme) => ({ | ||
arrowIcon: { | ||
color: fade(theme.palette.primary.contrastText, 0.7), | ||
marginLeft: ({margin }) => (margin ? theme.spacing(1) : 0), | ||
width: 16, | ||
height: 16, | ||
}, | ||
@@ -20,11 +20,11 @@ interface ArrowProps { | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. We could share this typing with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I also wonder if, instead of a ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
(This comment ended up in the wrong place, sorry for the confusion!) @Kira-Pilot Yeah, so I changed this because I thought the color combination was bad and it was also going to pose a contrast issue, but I have been wondering if it's obvious enough. I think the chevron and placement helps. But I also think I'm having trouble making it blue or underlined because it's a not a navigation link. It's really a button in functionality. What do you think is the best way to style that? I guess Zenhub styles "Show 4 more" on this page like a link (bold and blue). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Going to wait on a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. @presleyp That makes sense! I agree with your logic and I don't think it's something we need to change right now. Let's keep it back of mind and look out for link inspo in the future. | ||
export const OpenDropdown: FC<ArrowProps> = ({ margin = true }) => { | ||
const styles = useStyles({margin }) | ||
return <KeyboardArrowDown className={styles.arrowIcon} /> | ||
} | ||
export const CloseDropdown: FC<ArrowProps> = ({ margin = true }) => { | ||
const styles = useStyles({margin }) | ||
return <KeyboardArrowUp className={`${styles.arrowIcon} ${styles.arrowIconUp}`} /> | ||
} |