-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(colours): new colour page and changelog
- Loading branch information
1 parent
8dd71cb
commit 2ef611f
Showing
18 changed files
with
899 additions
and
431 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
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ body, | |
.container { | ||
svg { | ||
path { | ||
fill: $interactive-03; | ||
fill: $interactive-02; | ||
} | ||
} | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,8 @@ | |
} | ||
} | ||
|
||
b { | ||
b, | ||
strong { | ||
font-weight: 600; | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* eslint-disable no-console */ | ||
|
||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import PrismCode from 'react-prism'; | ||
import Page from '../Page'; | ||
import Blockquote from '../../components/Blockquote'; | ||
import Link from '../../components/Link'; | ||
import Changelog from '../../../CHANGELOG.md'; | ||
|
||
import ReactMarkdown from 'react-markdown'; | ||
import './_changelog.scss'; | ||
|
||
console.log(Changelog); | ||
|
||
storiesOf(' Design|Getting started', module) | ||
.addParameters({ options: { showPanel: false, isToolshown: false } }) | ||
.add("What's new (Changelog)", () => ( | ||
<Page title="Changelog" subTitle="Latest updates and versions"> | ||
<Blockquote title="UI Kit 1.3 is available" kind="warning"> | ||
We've just release the new version of the UI Kit. Get the latest version | ||
now. <br /> | ||
Read the{' '} | ||
<Link | ||
href="https://github.com/wfp/ui/blob/next/CHANGELOG.md" | ||
target="_blank"> | ||
full changelog | ||
</Link> | ||
</Blockquote> | ||
|
||
<div className="changelog"> | ||
<ReactMarkdown source={Changelog} /> | ||
</div> | ||
{/*<div dangerouslySetInnerHTML={createMarkup()} />*/} | ||
</Page> | ||
)); |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.changelog { | ||
h1 { | ||
font-size: 1.3rem; | ||
margin-top: 1rem; | ||
&:first-child { | ||
display: none; | ||
} | ||
} | ||
h3 { | ||
margin-top: 1rem; | ||
font-size: 1rem; | ||
} | ||
ul { | ||
margin-left: 1.4rem; | ||
line-height: 1.8; | ||
} | ||
li { | ||
list-style-type: disc; | ||
} | ||
} |
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
Oops, something went wrong.