From b234dfa4ca90a194e70bf62f62b8006abfa6df8a Mon Sep 17 00:00:00 2001 From: bmauger Date: Fri, 21 Jan 2022 14:42:40 -0500 Subject: [PATCH] CSR-266 create text link variations. --- src/layouts/component-test/component-test.vue | 31 ++++++--- src/styles/common-styles.scss | 35 ---------- src/ux-components/text-link/text-link.spec.js | 1 + src/ux-components/text-link/text-link.vue | 69 +++++++++++++++++++ 4 files changed, 91 insertions(+), 45 deletions(-) create mode 100644 src/ux-components/text-link/text-link.spec.js create mode 100644 src/ux-components/text-link/text-link.vue diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index 2ac9f56c6..06ce8a1dc 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -631,18 +631,27 @@
- Text Link (default text link behavior) -

- Text Link Small (.small) -

- Footer Link (.footer-link) -

- Navigation Link (.navigation-link) +

+

+

+
-

Typogrophy

+

Typography

@@ -888,7 +897,8 @@ import vehicleBanner from "@/common-components/vehicle-banner/vehicle-banner"; import funnelHeader from "@/common-components/funnel-header/funnel-header"; import listButtonHorizontal from "@/ux-components/list-button-horizontal/list-button-horizontal"; import checkbox from "@/ux-components/checkbox/checkbox"; -import buttonQuestion from "@/common-components/button-question/button-question" +import buttonQuestion from "@/common-components/button-question/button-question"; +import textLink from "@/ux-components/text-link/text-link"; export default { name: "App", components: { @@ -902,7 +912,8 @@ export default { listButtonHorizontal, checkbox, funnelHeader, - buttonQuestion + buttonQuestion, + textLink }, data() { return { diff --git a/src/styles/common-styles.scss b/src/styles/common-styles.scss index ba18099ff..a4915049b 100644 --- a/src/styles/common-styles.scss +++ b/src/styles/common-styles.scss @@ -10,41 +10,6 @@ body { box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.15); //Use instead of Bootstrap's helper } } - a { - color: $blue; - text-decoration: none; - border-bottom: 1px solid $blue; - line-height: 26px; - padding: 0 0 4px 0; - font-weight: 500; - &:hover { - color: $blue-700; - } - &.small { - line-height: 24px; - &:hover { - color: $blue-700; - } - } - &.navigation-link { - color: $black; - border-bottom: 1px solid $black; - line-height: 26px; - } - &.footer-link { - color: $gray-500; - text-decoration: none; - border-bottom: 1px solid transparent; - line-height: 20px; - padding: 0 0 2px 0; - font-weight: 400; - font-size: .75rem; - &:hover { - border-bottom: 1px solid $gray-500; - padding: 0 0 2px 0; - } - } - } .pointer { cursor: pointer; } diff --git a/src/ux-components/text-link/text-link.spec.js b/src/ux-components/text-link/text-link.spec.js new file mode 100644 index 000000000..3d0843e10 --- /dev/null +++ b/src/ux-components/text-link/text-link.spec.js @@ -0,0 +1 @@ +test.todo("some test to be written in the future"); diff --git a/src/ux-components/text-link/text-link.vue b/src/ux-components/text-link/text-link.vue new file mode 100644 index 000000000..15d677c9f --- /dev/null +++ b/src/ux-components/text-link/text-link.vue @@ -0,0 +1,69 @@ + + + + +