diff --git a/package.json b/package.json
index 2943cc7ca..699015d7e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "suomifi-ui-components",
- "version": "0.2.4",
+ "version": "0.2.5",
"description": "Suomi.fi UI component library",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
diff --git a/src/components/Link/Link.tsx b/src/components/Link/Link.tsx
index 1f5352789..34f167f3a 100644
--- a/src/components/Link/Link.tsx
+++ b/src/components/Link/Link.tsx
@@ -5,7 +5,7 @@ import classnames from 'classnames';
export const baseClassName = 'fi-link';
export interface LinkProps extends HtmlAProps {
- /** Link url */
+ /** Link url. Link is not focusable without the href */
href: string;
/** Custom classname to extend or customize */
className?: string;
diff --git a/src/core/Heading/Heading.md b/src/core/Heading/Heading.md
index ff1edd073..378a1815c 100644
--- a/src/core/Heading/Heading.md
+++ b/src/core/Heading/Heading.md
@@ -4,6 +4,7 @@ import { Heading } from 'suomifi-ui-components';
<>
h1 text
h2 text
+ h3 as h2 text
h3 text
h4 text
h5 text
diff --git a/src/core/Heading/Heading.test.tsx b/src/core/Heading/Heading.test.tsx
index 02d17c3be..87d5a8058 100644
--- a/src/core/Heading/Heading.test.tsx
+++ b/src/core/Heading/Heading.test.tsx
@@ -9,6 +9,7 @@ const TestHeadings = (
Test Heading
Test Heading
Test Heading
+ h3 as h2 text
Test Heading
Test Heading
Test Heading
diff --git a/src/core/Heading/Heading.tsx b/src/core/Heading/Heading.tsx
index 4405c811a..ab0b1d3c6 100644
--- a/src/core/Heading/Heading.tsx
+++ b/src/core/Heading/Heading.tsx
@@ -9,7 +9,7 @@ import {
} from '../../components/Heading/Heading';
import { baseStyles } from './Heading.baseStyles';
import classnames from 'classnames';
-import { Omit } from '../../utils/typescript';
+import { Omit, asPropType } from '../../utils/typescript';
import { logger } from '../../utils/logger';
const baseClassName = 'fi-heading';
@@ -27,6 +27,7 @@ export interface HeadingProps
smallScreen?: boolean;
/** Change font to smaller screen size and style */
color?: ColorProp;
+ asProp?: asPropType;
}
const StyledHeading = styled(
@@ -36,6 +37,7 @@ const StyledHeading = styled(
smallScreen,
className,
variant,
+ asProp, // as-property is defined internally as asProp and need to be implemented back if used
...passProps
}: HeadingProps) => (
),
)`
diff --git a/src/core/Heading/__snapshots__/Heading.test.tsx.snap b/src/core/Heading/__snapshots__/Heading.test.tsx.snap
index 543dc843a..c49893b33 100644
--- a/src/core/Heading/__snapshots__/Heading.test.tsx.snap
+++ b/src/core/Heading/__snapshots__/Heading.test.tsx.snap
@@ -301,6 +301,11 @@ exports[`calling render with the same component on the same container does not r
>
Test Heading
+
+ h3 as h2 text
+