Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
feat: add new arrow for new menu (#527)
Browse files Browse the repository at this point in the history
* feat: add new arrow for new menu

* fix: rename arrow to chevron

* fix: replace thickArrowDown with chevronDownThick
  • Loading branch information
mjmonline authored Feb 8, 2019
1 parent 4dc5db7 commit 8e168fc
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 5 deletions.
33 changes: 33 additions & 0 deletions src/components/icon/icons/chevronDownMedium.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import PropTypes from 'prop-types';
import React from 'react';
import Icon from '../icon';

export default function ChevronDownMedium({
fill,
style: styleProp,
...rest // eslint-disable-line comma-dangle
}) {
const style = {
...styleProp,
...Icon.defaultProps.style,
};
return (
<svg style={style} {...rest}>
<path
d="M14 .0814404l1.414214 1.3889597L7.707107 9.03988 0 1.4704001 1.414214.0814404l6.292893 6.1805201z"
fill={fill}
fillRule="nonzero"
/>
</svg>
);
}

ChevronDownMedium.propTypes = {
...Icon.propTypes,
fill: PropTypes.string,
};

ChevronDownMedium.defaultProps = {
...Icon.defaultProps,
viewBox: '0 0 16 9',
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import Icon from '../icon';

export default function ThickArrowDown({
export default function ChevronDownThick({
fill,
style: styleProp,
...rest // eslint-disable-line comma-dangle
Expand All @@ -22,12 +22,12 @@ export default function ThickArrowDown({
);
}

ThickArrowDown.propTypes = {
ChevronDownThick.propTypes = {
...Icon.propTypes,
fill: PropTypes.string,
};

ThickArrowDown.defaultProps = {
ChevronDownThick.defaultProps = {
...Icon.defaultProps,
viewBox: '0 0 9 6',
};
7 changes: 5 additions & 2 deletions src/components/icon/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import Cart from './cart';
import Checkmark from './checkmark';
import CheckmarkLarge from './checkmarkLarge';
import ChevronDown from './chevronDown';
import ChevronDownMedium from './chevronDownMedium';
import ChevronDownThick from './chevronDownThick';
import ChevronUp from './chevronUp';
import CircleArrow from './circleArrow';
import CircleSlash from './circleSlash';
Expand Down Expand Up @@ -87,7 +89,6 @@ import SolidArrowUp from './solidArrowUp';
import Star from './star';
import Tag from './tag';
import TickingClock from './tickingClock';
import ThickArrowDown from './thickArrowDown';
import Trash from './trash';
import VerticalEllipsis from './verticalEllipsis';

Expand All @@ -113,6 +114,8 @@ const Icon = {
Checkmark,
CheckmarkLarge,
ChevronDown,
ChevronDownMedium,
ChevronDownThick,
ChevronUp,
CircleArrow,
CircleSlash,
Expand Down Expand Up @@ -180,7 +183,7 @@ const Icon = {
SolidArrowUp,
Star,
Tag,
ThickArrowDown,
ThickArrowDown: ChevronDownThick,
TickingClock,
Trash,
VerticalEllipsis,
Expand Down

0 comments on commit 8e168fc

Please sign in to comment.