Skip to content

Commit

Permalink
fix(website): remove vague anchor do dont (#177)
Browse files Browse the repository at this point in the history
* chore: testing prettier version change

* fix(website): remove vague anchor do dont

* chore: fix prettier refactor
  • Loading branch information
richbachman committed Nov 13, 2019
1 parent 4d52e9a commit 8530c56
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 37 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -111,7 +111,7 @@
"lerna": "^3.16.4",
"lodash": "^4.17.14",
"precise-commits": "^1.0.2",
"prettier": "1.19.1",
"prettier": "1.18.2",
"react-test-renderer": "^16.8.6",
"require-context.macro": "^1.0.4",
"shelljs": "^0.8.3",
Expand Down
12 changes: 11 additions & 1 deletion packages/paste-core/utilities/box/src/index.tsx
Expand Up @@ -33,7 +33,17 @@ const Box = styled.div<Box>(
boxSizing: 'border-box',
minWidth: 0,
},
compose(space, layout, flexbox, background, backgroundColor, border, borderColor, boxShadow, position)
compose(
space,
layout,
flexbox,
background,
backgroundColor,
border,
borderColor,
boxShadow,
position
)
);

Box.displayName = 'Box';
Expand Down
10 changes: 9 additions & 1 deletion packages/paste-core/utilities/text/src/index.tsx
Expand Up @@ -21,7 +21,15 @@ const Text = styled.span<Text>(
margin: 0,
padding: 0,
},
compose(space, display, verticalAlign, overflow, textDecoration, typography, textColor)
compose(
space,
display,
verticalAlign,
overflow,
textDecoration,
typography,
textColor
)
);

Text.defaultProps = {
Expand Down
5 changes: 4 additions & 1 deletion packages/paste-icons/src/helpers/IconWrapper.tsx
Expand Up @@ -21,7 +21,10 @@ const IconWrapper = styled.span<IconWrapperProps>(
{
display: 'inline-block',
},
compose(iconColor, size)
compose(
iconColor,
size
)
);

IconWrapper.defaultProps = {
Expand Down
1 change: 0 additions & 1 deletion packages/paste-website/src/pages/changelog/index.mdx
Expand Up @@ -4,7 +4,6 @@ title: Changelog

import Changelog from '../../../CHANGELOG.md';


<content>

<Changelog />
Expand Down
5 changes: 0 additions & 5 deletions packages/paste-website/src/pages/components/anchor/index.mdx
Expand Up @@ -120,11 +120,6 @@ You can use an anchor to navigate the user to another webpage.
</Dont>
</DoDont>

<DoDont>
<Do title="Do" body="Anchors should only include text." preview={false} />
<Dont title="Don't" body="Don’t use an icon in place of or with anchor text." preview={false} />
</DoDont>

---

## Usage Guide
Expand Down
48 changes: 21 additions & 27 deletions yarn.lock
Expand Up @@ -3434,9 +3434,9 @@
chokidar "^2.1.2"

"@types/cheerio@*":
version "0.22.13"
resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.13.tgz#5eecda091a24514185dcba99eda77e62bf6523e6"
integrity sha512-OZd7dCUOUkiTorf97vJKwZnSja/DmHfuBAroe1kREZZTCf/tlFecwHhsOos3uVHxeKGZDwzolIrCUApClkdLuA==
version "0.22.14"
resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.14.tgz#d150889891e7db892c6a0b16bd5583cc70b3fc44"
integrity sha512-SVtcP2fvPYrebTwpyqxjxb7K5v3ZOAdH409yAEWFPpZThCSGa1K2IFfx6Rg6ttvThCBQXP4fU9WF94sqLoiQGg==
dependencies:
"@types/node" "*"

Expand Down Expand Up @@ -3721,7 +3721,7 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^15.0.0 || ^16.0.0", "@types/react@^16.8.12", "@types/react@^16.8.23", "@types/react@^16.8.6":
"@types/react@*", "@types/react@^16.8.12", "@types/react@^16.8.23", "@types/react@^16.8.6":
version "16.9.11"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.11.tgz#70e0b7ad79058a7842f25ccf2999807076ada120"
integrity sha512-UBT4GZ3PokTXSWmdgC/GeCGEJXE5ofWyibCcecRLUVN2ZBpXQGVgQGtG2foS7CrTKFKlQVVswLvf7Js6XA/CVQ==
Expand Down Expand Up @@ -7339,17 +7339,17 @@ copyfiles@^1.2.0:
through2 "^2.0.1"

core-js-compat@^3.1.1:
version "3.4.0"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.4.0.tgz#2a47c51d3dc026d290018cacd987495f68a47c75"
integrity sha512-pgQUcgT2+v9/yxHgMynYjNj7nmxLRXv3UC39rjCjDwpe63ev2rioQTju1PKLYUBbPCQQvZNWvQC8tBJd65q11g==
version "3.4.1"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.4.1.tgz#e12c5a3ef9fcb50fd9d9a32805bfe674f9139246"
integrity sha512-YdeJI26gLc0CQJ9asLE5obEgBz2I0+CIgnoTbS2T0d5IPQw/OCgCIFR527RmpduxjrB3gSEHoGOCTq9sigOyfw==
dependencies:
browserslist "^4.7.2"
semver "^6.3.0"

core-js-pure@^3.0.1:
version "3.4.0"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.4.0.tgz#a0e89ce3f8142512b784a3c9f85839730acd8203"
integrity sha512-d49s6GiW3ePYM8vCglfLLo6bueYx+Sff6MYtjohTMSB0AoxVfABXMUSmYHtKAEvW77T9JTKMyHrhE20nZ8gYDA==
version "3.4.1"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.4.1.tgz#483dbc687016b45cab4c185cf998c2c59e772c2a"
integrity sha512-q3FgAYoFGS0LaqV4K7oMsJUpGU7Ud3IR6D2qcu7BAvg0OQPuwakrdNlal+0Zsm3bUPBpI5i/r9C6W3uQCcCrSw==

core-js@2, core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.5.7, core-js@^2.6.10, core-js@^2.6.5:
version "2.6.10"
Expand All @@ -7362,9 +7362,9 @@ core-js@^1.0.0:
integrity sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=

core-js@^3.0.1, core-js@^3.0.4:
version "3.4.0"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.4.0.tgz#29ea478601789c72f2978e9bb98f43546f89d3aa"
integrity sha512-lQxb4HScV71YugF/X28LtePZj9AB7WqOpcB+YztYxusvhrgZiQXPmCYfPC5LHsw/+ScEtDbXU3xbqH3CjBRmYA==
version "3.4.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.4.1.tgz#76dd6828412900ab27c8ce0b22e6114d7ce21b18"
integrity sha512-KX/dnuY/J8FtEwbnrzmAjUYgLqtk+cxM86hfG60LGiW3MmltIc2yAmDgBgEkfm0blZhUrdr1Zd84J2Y14mLxzg==

core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2"
Expand Down Expand Up @@ -11810,9 +11810,9 @@ hast-to-hyperscript@^5.0.0:
web-namespaces "^1.1.2"

hast-to-hyperscript@^7.0.0:
version "7.0.3"
resolved "https://registry.yarnpkg.com/hast-to-hyperscript/-/hast-to-hyperscript-7.0.3.tgz#e36b2a32b237f83bbb80165351398226f12b7d6e"
integrity sha512-h4t0U8KIImkFCXswj0IzRhPgps6GpLxyjSPfI4ECF+bE13sHu1fY/UP8tvJmfLNa6blQctiyba4pUsvm3WrXMg==
version "7.0.4"
resolved "https://registry.yarnpkg.com/hast-to-hyperscript/-/hast-to-hyperscript-7.0.4.tgz#7c4c037d9a8ea19b0a3fdb676a26448ad922353d"
integrity sha512-vmwriQ2H0RPS9ho4Kkbf3n3lY436QKLq6VaGA1pzBh36hBi3tm1DO9bR+kaJIbpT10UqaANDkMjxvjVfr+cnOA==
dependencies:
comma-separated-tokens "^1.0.0"
property-information "^5.3.0"
Expand Down Expand Up @@ -15389,22 +15389,17 @@ miller-rabin@^4.0.0:
bn.js "^4.0.0"
brorand "^1.0.1"

mime-db@1.40.0:
version "1.40.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32"
integrity sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==

"mime-db@>= 1.40.0 < 2", mime-db@^1.28.0:
mime-db@1.42.0, "mime-db@>= 1.40.0 < 2", mime-db@^1.28.0:
version "1.42.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.42.0.tgz#3e252907b4c7adb906597b4b65636272cf9e7bac"
integrity sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ==

mime-types@^2.1.12, mime-types@^2.1.24, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24:
version "2.1.24"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.24.tgz#b6f8d0b3e951efb77dedeca194cff6d16f676f81"
integrity sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==
version "2.1.25"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.25.tgz#39772d46621f93e2a80a856c53b86a62156a6437"
integrity sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg==
dependencies:
mime-db "1.40.0"
mime-db "1.42.0"

mime@1.4.1:
version "1.4.1"
Expand Down Expand Up @@ -18353,7 +18348,6 @@ react-hot-loader@^4.12.16:
resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.12.16.tgz#353bd07fbb08f791b5720535f86b0a8f9b651317"
integrity sha512-KC33uTBacgdunMtfpZFP2pgPpyvKIcCwuh0XmWESbeFrkWLqUtCFN91zyaTdU5OiAM982+E8xh1gjE5EINumaw==
dependencies:
"@types/react" "^15.0.0 || ^16.0.0"
fast-levenshtein "^2.0.6"
global "^4.3.0"
hoist-non-react-statics "^3.3.0"
Expand Down

1 comment on commit 8530c56

@vercel
Copy link

@vercel vercel bot commented on 8530c56 Nov 13, 2019

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.