Skip to content

Commit

Permalink
Buttons & Alert Design Guideline docs (#91)
Browse files Browse the repository at this point in the history
* first commit

* Buttons

* later

* yep
  • Loading branch information
tko22 authored Jun 1, 2020
1 parent 2b64752 commit bf790e7
Show file tree
Hide file tree
Showing 21 changed files with 940 additions and 31 deletions.
9 changes: 9 additions & 0 deletions docs/components/design/buttonStyleText.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Text } from '@hack4impact-uiuc/bridge';

const ButtonStyleText = ({ children, order, ...props }) => (
<Text type="tags" as="p" mt={order === 1 ? '24px' : '4px'} mb="4px" {...props}>
{children}
</Text>
);

export default ButtonStyleText;
2 changes: 1 addition & 1 deletion docs/components/design/colorPalette.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const PaletteShade = ({ palette, name }) => (
color = palette.text;
}
if (label === 'white') {
color = theme.colors.text.grayScale.main;
color = theme.colors.text.greyScale.main;
borderStyling = WhiteBorderStyling;
}
if (label === 'primary') {
Expand Down
2 changes: 1 addition & 1 deletion docs/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable global-require */
import React from 'react';
import {
Flex, Link, Heading, Text,
Flex, Heading,
} from '@hack4impact-uiuc/bridge';
import FeedbackContext from './feedback-context';
import Markdown from './markdown';
Expand Down
2 changes: 1 addition & 1 deletion docs/components/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const sidebarSection = (section, title) => (
<Text type="body" fontWeight="700" as="p" m="24px 0 8px 0">{section.name}</Text>
{
section.routes.map((elm) => (
<Text as="p" m="5px 0" fontWeight={title === elm.title ? '700' : '500'}><Link href={elm.href}>{elm.title}</Link></Text>
<Text key={elm.title} as="p" m="5px 0" fontWeight={title === elm.title ? '700' : '500'}><Link href={elm.href}>{elm.title}</Link></Text>
))
}
</>
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "next start"
},
"dependencies": {
"@hack4impact-uiuc/bridge": "^0.0.7",
"@hack4impact-uiuc/bridge": "^0.0.8",
"@mdx-js/loader": "^1.6.1",
"@mdx-js/tag": "^0.20.3",
"@next/mdx": "^9.3.6",
Expand Down
5 changes: 0 additions & 5 deletions docs/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@ class DocSite extends Document {
sizes="16x16"
href="/favicons/favicon-16x16.svg"
/>
<link rel="manifest" href="/favicons/site.webmanifest" />
<link rel="mask-icon" href="favicons/safari-pinned-tab.svg" color="#000000" />
<link rel="shortcut icon" href="/favicons/favicon.ico" />
<link href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap" rel="stylesheet" />

<meta name="msapplication-TileColor" content="#000000" />
<meta name="msapplication-config" content="/favicons/browserconfig.xml" />
<meta name="theme-color" content="#155DA1" />
<link rel="alternate" type="application/rss+xml" href="/feed.xml" />
<meta charSet="UTF-8" />
</Head>
<body style={{ margin: 0 }}>
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/design/alerts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Links within alerts are set in 18px HK Grotesk SemiBold text (check [typography]

<CodeExampleBox p="md" pb="xxs">
<Alert variant="success" mb="md">
This is a success alert! This is an accompanying <Link href="#">link</Link>.
This is a success alert! This is an accompanying <Link href="#">{" link"}</Link>.
</Alert>

<Alert variant="error" mb="md">
Expand Down
Loading

1 comment on commit bf790e7

@vercel
Copy link

@vercel vercel bot commented on bf790e7 Jun 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.