diff --git a/libs/pxweb2-ui/src/lib/components/Link/Link.module.scss b/libs/pxweb2-ui/src/lib/components/Link/Link.module.scss index b1fab693..1b26eac0 100644 --- a/libs/pxweb2-ui/src/lib/components/Link/Link.module.scss +++ b/libs/pxweb2-ui/src/lib/components/Link/Link.module.scss @@ -13,8 +13,6 @@ &:hover { text-decoration: none; background-color: var(--px-color-surface-subtle-hover); - // padding-top: 0px; - // padding-bottom: 0px; } &:focus { diff --git a/libs/pxweb2-ui/src/lib/components/Link/Link.stories.tsx b/libs/pxweb2-ui/src/lib/components/Link/Link.stories.tsx index 30711e2e..9d0a4da0 100644 --- a/libs/pxweb2-ui/src/lib/components/Link/Link.stories.tsx +++ b/libs/pxweb2-ui/src/lib/components/Link/Link.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj, StoryFn } from '@storybook/react'; + import { Link } from './Link'; import { BodyLong } from '../Typography/BodyLong/BodyLong'; @@ -68,21 +69,6 @@ export const inlineAndStandalone: StoryFn = () => { saw a wolf, no even a little fox. - {/*

small icon right:

- - This is a story about Little Red Ridinghood. One day she went into the - wood to visit her grandmother. The day after too, She visited her every - day, every week, every month, every year. She never saw a wolf, no even - a little fox. Go to{' '} - - Statistikkbanken - {' '} - to read more This is a story about Little Red Ridinghood. One day she - went into the wood to visit her grandmother. The day after too, She - visited her every day, every week, every month, every year. She never - saw a wolf, no even a little fox. - */} -

Standalone link

medium without icon:

@@ -105,7 +91,7 @@ export const inlineAndStandalone: StoryFn = () => { Statistikkbanken -

small icon left:

+

small icon left:

Statistikkbanken{' '} @@ -113,11 +99,8 @@ export const inlineAndStandalone: StoryFn = () => {

small icon right:

Statistikkbanken - +
); }; - -/* import { within } from '@storybook/testing-library'; -import { expect } from '@storybook/jest'; */ diff --git a/libs/pxweb2-ui/src/lib/components/Link/Link.tsx b/libs/pxweb2-ui/src/lib/components/Link/Link.tsx index f756dc62..a0888bd4 100644 --- a/libs/pxweb2-ui/src/lib/components/Link/Link.tsx +++ b/libs/pxweb2-ui/src/lib/components/Link/Link.tsx @@ -22,7 +22,6 @@ export function Link({ noUnderline = false, ...rest }: LinkProps) { - return ( {icon && iconPosition === 'left' && (