From e2406ef869f00ca46bfa21915c69e70c0d7df4f2 Mon Sep 17 00:00:00 2001 From: James Schreffler Date: Tue, 30 Jan 2024 09:59:00 -0500 Subject: [PATCH] chore: kneel before the gods of lint. --- .../outline-core-styled-text/packages.json | 6 +----- .../src/outline-core-styled-text.shared.css | 15 ++++++++++++--- .../src/outline-core-styled-text.ts | 1 - .../src/utilities/tooltip.ts | 5 ++++- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/packages/components/outline-core-styled-text/packages.json b/packages/components/outline-core-styled-text/packages.json index fcaaf1e4..d10db7af 100644 --- a/packages/components/outline-core-styled-text/packages.json +++ b/packages/components/outline-core-styled-text/packages.json @@ -13,11 +13,7 @@ "main": "index.ts", "types": "index.ts", "typings": "index.d.ts", - "files": [ - "/dist/", - "/src/", - "!/dist/tsconfig.build.tsbuildinfo" - ], + "files": ["/dist/", "/src/", "!/dist/tsconfig.build.tsbuildinfo"], "author": "Phase2 Technology", "repository": { "type": "git", diff --git a/packages/components/outline-core-styled-text/src/outline-core-styled-text.shared.css b/packages/components/outline-core-styled-text/src/outline-core-styled-text.shared.css index ca7337b9..170bff4f 100644 --- a/packages/components/outline-core-styled-text/src/outline-core-styled-text.shared.css +++ b/packages/components/outline-core-styled-text/src/outline-core-styled-text.shared.css @@ -5,7 +5,10 @@ p { display: block; font-size: var(--outline-body-text--font-size, var(--body-01-font-size)); - line-height: var(--outline-body-text--line-height, var(--body-01-line-height)); + line-height: var( + --outline-body-text--line-height, + var(--body-01-line-height) + ); margin-bottom: var(--outline-body-text--margin-bottom, 1em); font-weight: var(--fw-normal); @@ -284,13 +287,19 @@ table { } a.outline-cta { font-size: inherit; - color: var(--outline-disclaimer-cta--text-color, var(--outline-cta--text-color)); + color: var( + --outline-disclaimer-cta--text-color, + var(--outline-cta--text-color) + ); text-decoration: underline; .last-word { text-decoration: underline; &::after { - background-image: var(--outline-disclaimer-cta--icon, var(--outline-cta--icon)); + background-image: var( + --outline-disclaimer-cta--icon, + var(--outline-cta--icon) + ); height: var(--spacing-03); width: var(--spacing-03); margin-left: calc(var(--spacing-02)); diff --git a/packages/components/outline-core-styled-text/src/outline-core-styled-text.ts b/packages/components/outline-core-styled-text/src/outline-core-styled-text.ts index cde7395f..86ce56bc 100644 --- a/packages/components/outline-core-styled-text/src/outline-core-styled-text.ts +++ b/packages/components/outline-core-styled-text/src/outline-core-styled-text.ts @@ -11,7 +11,6 @@ import { externalLinkText } from './utilities/external-link-text'; import { tooltipLink } from './utilities/tooltip'; import { wrapLastWord } from './utilities/wrap-last-word'; - wrapLastWord; /** diff --git a/packages/components/outline-core-styled-text/src/utilities/tooltip.ts b/packages/components/outline-core-styled-text/src/utilities/tooltip.ts index fe3638cd..f73a7286 100644 --- a/packages/components/outline-core-styled-text/src/utilities/tooltip.ts +++ b/packages/components/outline-core-styled-text/src/utilities/tooltip.ts @@ -5,7 +5,10 @@ import { wrapLastWord } from './wrap-last-word'; */ export function tooltipLink(el: HTMLElement) { // Check if the element contains an image - if (el.querySelector('.outline-core-tooltip-popup') || !el.hasAttribute('title')) { + if ( + el.querySelector('.outline-core-tooltip-popup') || + !el.hasAttribute('title') + ) { return; }