diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e3060b8..c20c94d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # CHANGE LOG ## [Prerelease] + - Enable playwright tests GH action +- Remove unused scss and img files ## [0.18.8] diff --git a/src/components/Landing/Landing.tsx b/src/components/Landing/Landing.tsx index e11d0b0a..4860fd3f 100644 --- a/src/components/Landing/Landing.tsx +++ b/src/components/Landing/Landing.tsx @@ -22,6 +22,7 @@ const LandingPage: React.FC<{ collections?: Opds2Feed }> = ({ sx={{ a: { color: "ui.link.primary", + display: "inline", }, }} > diff --git a/src/components/ReaderLayout/ReaderLayout.tsx b/src/components/ReaderLayout/ReaderLayout.tsx index ec25e868..233db795 100644 --- a/src/components/ReaderLayout/ReaderLayout.tsx +++ b/src/components/ReaderLayout/ReaderLayout.tsx @@ -149,7 +149,7 @@ const ReaderLayout: React.FC<{ const BackButton = () => { return ( //Apends design system classname to use Design System Link. - + diff --git a/src/components/Svgs/ReaderLogoSvg.tsx b/src/components/Svgs/ReaderLogoSvg.tsx index a0ad967b..5cebd1ee 100644 --- a/src/components/Svgs/ReaderLogoSvg.tsx +++ b/src/components/Svgs/ReaderLogoSvg.tsx @@ -1,6 +1,7 @@ +import { PropsOf } from "@chakra-ui/react"; import React from "react"; -const ReaderLogoSvg: React.FC = () => ( +const ReaderLogoSvg: React.FC> = () => ( - - - - - diff --git a/styles/img/alerts/info.svg b/styles/img/alerts/info.svg deleted file mode 100755 index a594e7ce..00000000 --- a/styles/img/alerts/info.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - diff --git a/styles/img/alerts/success.svg b/styles/img/alerts/success.svg deleted file mode 100755 index 0e3fab56..00000000 --- a/styles/img/alerts/success.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/styles/img/alerts/warning.svg b/styles/img/alerts/warning.svg deleted file mode 100755 index e3d895a6..00000000 --- a/styles/img/alerts/warning.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - diff --git a/styles/img/angle-arrow-down-hover.svg b/styles/img/angle-arrow-down-hover.svg deleted file mode 100644 index 63b09db8..00000000 --- a/styles/img/angle-arrow-down-hover.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/angle-arrow-down-primary-hover.svg b/styles/img/angle-arrow-down-primary-hover.svg deleted file mode 100644 index 887e1b8a..00000000 --- a/styles/img/angle-arrow-down-primary-hover.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/angle-arrow-down-primary.svg b/styles/img/angle-arrow-down-primary.svg deleted file mode 100644 index fe3ae3b6..00000000 --- a/styles/img/angle-arrow-down-primary.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/angle-arrow-down-white.svg b/styles/img/angle-arrow-down-white.svg deleted file mode 100644 index 595ea2db..00000000 --- a/styles/img/angle-arrow-down-white.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/styles/img/angle-arrow-down.svg b/styles/img/angle-arrow-down.svg deleted file mode 100644 index ed4917b1..00000000 --- a/styles/img/angle-arrow-down.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/angle-arrow-up-primary-hover.svg b/styles/img/angle-arrow-up-primary-hover.svg deleted file mode 100644 index d2849eaf..00000000 --- a/styles/img/angle-arrow-up-primary-hover.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/angle-arrow-up-primary.svg b/styles/img/angle-arrow-up-primary.svg deleted file mode 100644 index b6b8e5a4..00000000 --- a/styles/img/angle-arrow-up-primary.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/angle-arrow-up-white.svg b/styles/img/angle-arrow-up-white.svg deleted file mode 100644 index 0aa586ea..00000000 --- a/styles/img/angle-arrow-up-white.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/styles/img/arrow-both.svg b/styles/img/arrow-both.svg deleted file mode 100644 index a7ca63a4..00000000 --- a/styles/img/arrow-both.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/arrow-down.svg b/styles/img/arrow-down.svg deleted file mode 100644 index 921c2415..00000000 --- a/styles/img/arrow-down.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/arrow-right.svg b/styles/img/arrow-right.svg deleted file mode 100644 index 131c7713..00000000 --- a/styles/img/arrow-right.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/circle-124.png b/styles/img/circle-124.png deleted file mode 100644 index 7d1e17d9..00000000 Binary files a/styles/img/circle-124.png and /dev/null differ diff --git a/styles/img/close-blue-30-alt.svg b/styles/img/close-blue-30-alt.svg deleted file mode 100644 index f47fc155..00000000 --- a/styles/img/close-blue-30-alt.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close-blue-40v-alt.svg b/styles/img/close-blue-40v-alt.svg deleted file mode 100644 index 1f23e021..00000000 --- a/styles/img/close-blue-40v-alt.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close-blue-50-alt.svg b/styles/img/close-blue-50-alt.svg deleted file mode 100644 index 06cd0d78..00000000 --- a/styles/img/close-blue-50-alt.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close-blue-50v-alt.svg b/styles/img/close-blue-50v-alt.svg deleted file mode 100644 index 8c55079c..00000000 --- a/styles/img/close-blue-50v-alt.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close-blue-60-alt.svg b/styles/img/close-blue-60-alt.svg deleted file mode 100644 index a57b0bc3..00000000 --- a/styles/img/close-blue-60-alt.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close-blue-60v-alt.svg b/styles/img/close-blue-60v-alt.svg deleted file mode 100644 index 815e22da..00000000 --- a/styles/img/close-blue-60v-alt.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close-gray-90-alt.svg b/styles/img/close-gray-90-alt.svg deleted file mode 100644 index 9fe9f790..00000000 --- a/styles/img/close-gray-90-alt.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close-primary.svg b/styles/img/close-primary.svg deleted file mode 100644 index 76f37991..00000000 --- a/styles/img/close-primary.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/close-white-alt.svg b/styles/img/close-white-alt.svg deleted file mode 100644 index a09fc688..00000000 --- a/styles/img/close-white-alt.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close-white.svg b/styles/img/close-white.svg deleted file mode 100644 index e63e02a5..00000000 --- a/styles/img/close-white.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/close.svg b/styles/img/close.svg deleted file mode 100644 index 13e9c5dd..00000000 --- a/styles/img/close.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/correct8-alt.png b/styles/img/correct8-alt.png deleted file mode 100644 index 594622e9..00000000 Binary files a/styles/img/correct8-alt.png and /dev/null differ diff --git a/styles/img/correct8-alt.svg b/styles/img/correct8-alt.svg deleted file mode 100644 index 095ec58c..00000000 --- a/styles/img/correct8-alt.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/styles/img/correct8.svg b/styles/img/correct8.svg deleted file mode 100755 index bd7b38b2..00000000 --- a/styles/img/correct8.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/correct9.svg b/styles/img/correct9.svg deleted file mode 100755 index 4f122106..00000000 --- a/styles/img/correct9.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/external-link-alt-hover.svg b/styles/img/external-link-alt-hover.svg deleted file mode 100644 index 2958691b..00000000 --- a/styles/img/external-link-alt-hover.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/external-link-alt.svg b/styles/img/external-link-alt.svg deleted file mode 100644 index 15a5129e..00000000 --- a/styles/img/external-link-alt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/external-link-black.svg b/styles/img/external-link-black.svg deleted file mode 100644 index 5fc33074..00000000 --- a/styles/img/external-link-black.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/external-link-hover.svg b/styles/img/external-link-hover.svg deleted file mode 100644 index 3d99803b..00000000 --- a/styles/img/external-link-hover.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/external-link.svg b/styles/img/external-link.svg deleted file mode 100644 index e7804dec..00000000 --- a/styles/img/external-link.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/favicons/favicon-114.png b/styles/img/favicons/favicon-114.png deleted file mode 100755 index 568b4fdf..00000000 Binary files a/styles/img/favicons/favicon-114.png and /dev/null differ diff --git a/styles/img/favicons/favicon-144.png b/styles/img/favicons/favicon-144.png deleted file mode 100755 index ec224990..00000000 Binary files a/styles/img/favicons/favicon-144.png and /dev/null differ diff --git a/styles/img/favicons/favicon-16.png b/styles/img/favicons/favicon-16.png deleted file mode 100755 index 27d31255..00000000 Binary files a/styles/img/favicons/favicon-16.png and /dev/null differ diff --git a/styles/img/favicons/favicon-192.png b/styles/img/favicons/favicon-192.png deleted file mode 100755 index 9dfa28b1..00000000 Binary files a/styles/img/favicons/favicon-192.png and /dev/null differ diff --git a/styles/img/favicons/favicon-40.png b/styles/img/favicons/favicon-40.png deleted file mode 100755 index 06683cbe..00000000 Binary files a/styles/img/favicons/favicon-40.png and /dev/null differ diff --git a/styles/img/favicons/favicon-57.png b/styles/img/favicons/favicon-57.png deleted file mode 100755 index 215dbe84..00000000 Binary files a/styles/img/favicons/favicon-57.png and /dev/null differ diff --git a/styles/img/favicons/favicon-72.png b/styles/img/favicons/favicon-72.png deleted file mode 100755 index 27f62917..00000000 Binary files a/styles/img/favicons/favicon-72.png and /dev/null differ diff --git a/styles/img/favicons/favicon.ico b/styles/img/favicons/favicon.ico deleted file mode 100644 index 51502bae..00000000 Binary files a/styles/img/favicons/favicon.ico and /dev/null differ diff --git a/styles/img/favicons/favicon.png b/styles/img/favicons/favicon.png deleted file mode 100755 index a37e0b6c..00000000 Binary files a/styles/img/favicons/favicon.png and /dev/null differ diff --git a/styles/img/header-md.png b/styles/img/header-md.png deleted file mode 100644 index 29a93e97..00000000 Binary files a/styles/img/header-md.png and /dev/null differ diff --git a/styles/img/header-sm.png b/styles/img/header-sm.png deleted file mode 100644 index a64af633..00000000 Binary files a/styles/img/header-sm.png and /dev/null differ diff --git a/styles/img/header.png b/styles/img/header.png deleted file mode 100644 index 3485e740..00000000 Binary files a/styles/img/header.png and /dev/null differ diff --git a/styles/img/hero.png b/styles/img/hero.png deleted file mode 100644 index 6197b334..00000000 Binary files a/styles/img/hero.png and /dev/null differ diff --git a/styles/img/icon-dot-gov.svg b/styles/img/icon-dot-gov.svg deleted file mode 100644 index 27182dce..00000000 --- a/styles/img/icon-dot-gov.svg +++ /dev/null @@ -1 +0,0 @@ -dot gov icon \ No newline at end of file diff --git a/styles/img/icon-https.svg b/styles/img/icon-https.svg deleted file mode 100644 index 3f98a93f..00000000 --- a/styles/img/icon-https.svg +++ /dev/null @@ -1 +0,0 @@ -https icon \ No newline at end of file diff --git a/styles/img/logo-img.png b/styles/img/logo-img.png deleted file mode 100644 index 82ab23ec..00000000 Binary files a/styles/img/logo-img.png and /dev/null differ diff --git a/styles/img/minus-alt.svg b/styles/img/minus-alt.svg deleted file mode 100644 index 38fdbf66..00000000 --- a/styles/img/minus-alt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/minus.svg b/styles/img/minus.svg deleted file mode 100644 index 6a0c4d41..00000000 --- a/styles/img/minus.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/plus-alt.svg b/styles/img/plus-alt.svg deleted file mode 100644 index b3b73ea6..00000000 --- a/styles/img/plus-alt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/plus.svg b/styles/img/plus.svg deleted file mode 100644 index 92ba843c..00000000 --- a/styles/img/plus.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/search-alt.svg b/styles/img/search-alt.svg deleted file mode 100755 index 4a921ea0..00000000 --- a/styles/img/search-alt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/search-primary.svg b/styles/img/search-primary.svg deleted file mode 100644 index ef1a5c9e..00000000 --- a/styles/img/search-primary.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/search.svg b/styles/img/search.svg deleted file mode 100755 index a50fa62f..00000000 --- a/styles/img/search.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/styles/img/select-arrow-down.svg b/styles/img/select-arrow-down.svg deleted file mode 100644 index 94eab6e7..00000000 --- a/styles/img/select-arrow-down.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/styles/img/social-icons/facebook25.png b/styles/img/social-icons/facebook25.png deleted file mode 100644 index 98d55698..00000000 Binary files a/styles/img/social-icons/facebook25.png and /dev/null differ diff --git a/styles/img/social-icons/facebook25.svg b/styles/img/social-icons/facebook25.svg deleted file mode 100755 index f9c1bc3a..00000000 --- a/styles/img/social-icons/facebook25.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/styles/img/social-icons/rss25.png b/styles/img/social-icons/rss25.png deleted file mode 100644 index b0102b3d..00000000 Binary files a/styles/img/social-icons/rss25.png and /dev/null differ diff --git a/styles/img/social-icons/rss25.svg b/styles/img/social-icons/rss25.svg deleted file mode 100755 index 42f11fa4..00000000 --- a/styles/img/social-icons/rss25.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/styles/img/social-icons/twitter16.png b/styles/img/social-icons/twitter16.png deleted file mode 100644 index f169313e..00000000 Binary files a/styles/img/social-icons/twitter16.png and /dev/null differ diff --git a/styles/img/social-icons/twitter16.svg b/styles/img/social-icons/twitter16.svg deleted file mode 100755 index 8e728c36..00000000 --- a/styles/img/social-icons/twitter16.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/styles/img/social-icons/youtube15.png b/styles/img/social-icons/youtube15.png deleted file mode 100644 index f3cf18bd..00000000 Binary files a/styles/img/social-icons/youtube15.png and /dev/null differ diff --git a/styles/img/social-icons/youtube15.svg b/styles/img/social-icons/youtube15.svg deleted file mode 100755 index c3013332..00000000 --- a/styles/img/social-icons/youtube15.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/styles/img/us_flag_small.png b/styles/img/us_flag_small.png deleted file mode 100644 index 34b927b4..00000000 Binary files a/styles/img/us_flag_small.png and /dev/null differ diff --git a/styles/main.scss b/styles/main.scss index e0562ff8..f17ea338 100644 --- a/styles/main.scss +++ b/styles/main.scss @@ -5,25 +5,13 @@ $fontFamily: "system-ui"; -/** Import Design System Styles and mixins */ +/** Import Design System Styles */ @import "~@nypl/design-system-react-components/dist/styles.css"; -// @import "~@nypl/design-system-react-components/dist/resources.scss"; -/** -* Import custom rules for this project. -*/ - -// @import "./mixins/Mixins.scss"; @import "./../src/components/SearchHeader/SearchHeader.scss"; @import "./components/IFrameReader.scss"; @import "./components/Loading.scss"; -@import "./components/Feedback.scss"; -// @import "./components/RequestDigitization.scss"; -// @import "./components/Citations.scss"; -// @import "./components/ReaderLayout.scss"; - -@import "./dividers.scss"; html { font-family: $fontFamily; @@ -33,48 +21,12 @@ body { height: 100%; } -.nypl-ds { - overflow: unset; - fieldset { - border: none; - } -} - -#app { - margin: 0; - height: 100%; -} - -.nypl-header-img { - background: url("./img/header.png") no-repeat center; - border-bottom: 2px solid #d0343a; - - @media screen and (min-width: 1024px) { - min-height: 230px; - } - - @media screen and (max-width: 1024px) { - background: url("./img/header-md.png") no-repeat center; - min-height: 180px; - } - - @media screen and (max-width: 520px) { - background: url("./img/header-sm.png") no-repeat center; - min-height: 70px; - } -} - -#header-mobile-searchForm-searchInput::placeholder { - --color-place-holder: var(--nypl-colors-ui-gray-dark); - color: var(--color-place-holder); -} - // min height on header container to prevent content shift on page load #nypl-header { min-height: 62px; } @media screen and (min-width: 832px) { #nypl-header { - min-height: 130px; + min-height: 130px; } -} \ No newline at end of file +} diff --git a/styles/mixins/Mixins.scss b/styles/mixins/Mixins.scss deleted file mode 100644 index f663cbe5..00000000 --- a/styles/mixins/Mixins.scss +++ /dev/null @@ -1,25 +0,0 @@ -@mixin screenreader-only { - // to hide something from view but make it visible to screen readers - // used on some table headers - // based on last.fm tables - position: absolute; - width: 0.1rem; - height: 0.1rem; - margin: -0.1rem; - padding: 0; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} - -@mixin clearfix() { - &::before, - &::after { - content: ''; - display: table; - } - - &::after { - clear: both; - } -}