From 190bed43a8bd8a6ec8c189f9c38f8c7693d24a6f Mon Sep 17 00:00:00 2001 From: Zachary Shilton <4624598+zchsh@users.noreply.github.com> Date: Mon, 10 May 2021 11:30:30 -0400 Subject: [PATCH] website/patch: clean up css override marked as debt (#1211) * patch: clean up css override marked as debt * remove now-unused icon svg * website: bump hero, use tertiary button in hero --- .../homepage-hero/HomepageHero.module.css | 21 ------------------- website/package-lock.json | 6 +++--- website/package.json | 2 +- website/pages/home/index.jsx | 2 ++ website/public/img/icon-right-arrow.svg | 4 ---- 5 files changed, 6 insertions(+), 29 deletions(-) delete mode 100644 website/public/img/icon-right-arrow.svg diff --git a/website/components/homepage-hero/HomepageHero.module.css b/website/components/homepage-hero/HomepageHero.module.css index a0a8b6294e..1ff7919614 100644 --- a/website/components/homepage-hero/HomepageHero.module.css +++ b/website/components/homepage-hero/HomepageHero.module.css @@ -14,27 +14,6 @@ background: none; padding: 0; - & :global(.g-btn:nth-of-type(1)) { - border-color: var(--boundary); - background-color: var(--boundary); - } - - /* Asana ticket to address this debt: https://app.asana.com/0/1100423001970639/1200214305924669/f */ - & :global(.g-btn:nth-of-type(2)) { - border: unset; - - &::after { - display: inline-block; - margin-left: 5px; - vertical-align: middle; - content: ' '; - background-image: url('/img/icon-right-arrow.svg'); - background-size: 20px 20px; - height: 20px; - width: 20px; - } - } - & :global(.carousel) { display: flex; flex-direction: column-reverse; diff --git a/website/package-lock.json b/website/package-lock.json index 98a551a5a2..3de60b4678 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -1941,9 +1941,9 @@ "integrity": "sha512-3xmaf7cU1lCUS/hgnpqokUw731xAPR51q5rCLuazMtSVasjnGqqoFSQfkQRycllUiCGG/GiMYSaBCY+WlwQXTQ==" }, "@hashicorp/react-hero": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/@hashicorp/react-hero/-/react-hero-7.1.2.tgz", - "integrity": "sha512-X83mc/1/8gNEhfByfd5Ig7qS/5yYRJHOdrBj1v6DDcj3EGH45FtsS2XvRtTE+mJ6YbKrBrCtzZskcPtYEZkBMA==", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/@hashicorp/react-hero/-/react-hero-7.2.1.tgz", + "integrity": "sha512-+G4JTrvQm57Qp5fBQgA1X2RFKhFNDatJH2biTBgz27TLB00/g12XduTFA8GqMbVIluCBhrUdnxtpxgk8Fud+Pw==", "requires": { "@hashicorp/js-utils": "^1.0.8-alpha.0", "@hashicorp/localstorage-polyfill": "^1.0.14", diff --git a/website/package.json b/website/package.json index 0c1a99209f..aea70458ec 100644 --- a/website/package.json +++ b/website/package.json @@ -14,7 +14,7 @@ "@hashicorp/react-docs-page": "13.2.0", "@hashicorp/react-hashi-stack-menu": "2.0.3", "@hashicorp/react-head": "2.0.0", - "@hashicorp/react-hero": "7.1.2", + "@hashicorp/react-hero": "7.2.1", "@hashicorp/react-image": "4.0.0", "@hashicorp/react-product-downloader": "8.0.0", "@hashicorp/react-product-features-list": "4.0.1", diff --git a/website/pages/home/index.jsx b/website/pages/home/index.jsx index 56ffdcc134..3ed3f683cb 100644 --- a/website/pages/home/index.jsx +++ b/website/pages/home/index.jsx @@ -21,6 +21,8 @@ export default function HomePage() { { title: 'Download macOS Client', url: '/downloads#desktop', + linkType: 'inbound', + theme: { variant: 'tertiary' }, }, ]} uiVideo={{ diff --git a/website/public/img/icon-right-arrow.svg b/website/public/img/icon-right-arrow.svg deleted file mode 100644 index fffd28cea3..0000000000 --- a/website/public/img/icon-right-arrow.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - -