Skip to content

Commit

Permalink
chore: kneel before the gods of lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSchreff committed Jan 30, 2024
1 parent aca9cd0 commit e2406ef
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
6 changes: 1 addition & 5 deletions packages/components/outline-core-styled-text/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { externalLinkText } from './utilities/external-link-text';
import { tooltipLink } from './utilities/tooltip';
import { wrapLastWord } from './utilities/wrap-last-word';


wrapLastWord;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e2406ef

Please sign in to comment.