@@ -85,7 +85,7 @@ export default function Home({ params: { lang } }: Route.ComponentProps) {
-
+
{t('themeBuilder.documentation')}
diff --git a/apps/www/app/_components/do-dont/do-dont.module.css b/apps/www/app/_components/do-dont/do-dont.module.css
index 332d7df7aa..6caac1f41f 100644
--- a/apps/www/app/_components/do-dont/do-dont.module.css
+++ b/apps/www/app/_components/do-dont/do-dont.module.css
@@ -34,7 +34,8 @@
}
svg {
color: var(--ds-color-base-default);
- font-size: 2rem;
+ height: 2rem;
+ width: auto;
}
}
.footer {
diff --git a/apps/www/app/_components/image/image.tsx b/apps/www/app/_components/image/image.tsx
index 57bab7a3b0..5bd843e9d0 100644
--- a/apps/www/app/_components/image/image.tsx
+++ b/apps/www/app/_components/image/image.tsx
@@ -77,7 +77,7 @@ const Image = ({
icon
variant='tertiary'
>
-
+
{t('image.enlarged-text')}
diff --git a/apps/www/app/_components/search-dialog/search-dialog.module.css b/apps/www/app/_components/search-dialog/search-dialog.module.css
index edd1719c80..677ef1670a 100644
--- a/apps/www/app/_components/search-dialog/search-dialog.module.css
+++ b/apps/www/app/_components/search-dialog/search-dialog.module.css
@@ -58,7 +58,8 @@
align-items: center;
gap: var(--gap);
> svg {
- font-size: var(--icon-size);
+ height: var(--icon-size);
+ width: auto;
}
}
diff --git a/apps/www/app/_components/sidebar/sidebar.tsx b/apps/www/app/_components/sidebar/sidebar.tsx
index ef60f7f94d..0d8d0dae23 100644
--- a/apps/www/app/_components/sidebar/sidebar.tsx
+++ b/apps/www/app/_components/sidebar/sidebar.tsx
@@ -48,7 +48,7 @@ export const Sidebar = ({
popoverTargetAction='show'
>
{t('sidebar.show')} {t(`sidebar.sidebar`)}
-
+
@@ -296,20 +298,24 @@ export default function Home({ loaderData: { posts } }: Route.ComponentProps) {
-
+
{t('frontpage.join-section.buttons.slack')}
-
+
{t('frontpage.join-section.buttons.github')}
-
+
{t('frontpage.join-section.buttons.email')}
diff --git a/internal/components/src/clipboard-button/clipboard-button.tsx b/internal/components/src/clipboard-button/clipboard-button.tsx
index 2b826838e3..c3446ea69b 100644
--- a/internal/components/src/clipboard-button/clipboard-button.tsx
+++ b/internal/components/src/clipboard-button/clipboard-button.tsx
@@ -48,7 +48,7 @@ export const ClipboardButton = ({
data-size='sm'
aria-label={ariaLabel}
>
-
+
{text &&
{text}}
diff --git a/internal/components/src/header/header.module.css b/internal/components/src/header/header.module.css
index f9a612fb61..b85339f956 100644
--- a/internal/components/src/header/header.module.css
+++ b/internal/components/src/header/header.module.css
@@ -168,7 +168,7 @@
}
.toggleButton svg {
- font-size: 1.5em;
+ height: 1.5em;
}
@media (max-width: 600px) {
.toggleButton span {
diff --git a/internal/components/src/header/header.tsx b/internal/components/src/header/header.tsx
index 8b346d853d..888bf9040d 100644
--- a/internal/components/src/header/header.tsx
+++ b/internal/components/src/header/header.tsx
@@ -274,9 +274,9 @@ const Header = ({
className={classes.toggleButton}
>
{theme === 'dark' ? (
-
+
) : (
-
+
)}
@@ -294,7 +294,6 @@ const Header = ({
>
@@ -325,7 +324,6 @@ const Header = ({
>
diff --git a/packages/css/src/badge.css b/packages/css/src/badge.css
index 62c10d3b61..185f86130d 100644
--- a/packages/css/src/badge.css
+++ b/packages/css/src/badge.css
@@ -66,7 +66,8 @@
& :where(img, svg) {
flex-shrink: 0; /* Never shrink icon */
- font-size: 1.25em; /* Auto scale icon based on font-size */
+ height: 1.25em; /* Auto scale icon based on font-size */
+ width: auto;
}
&[data-placement='top-right'] .ds-badge::before {
diff --git a/packages/css/src/button.css b/packages/css/src/button.css
index a0966da051..b07d3c78b3 100644
--- a/packages/css/src/button.css
+++ b/packages/css/src/button.css
@@ -54,7 +54,8 @@
& :where(img, svg) {
flex-shrink: 0;
- font-size: 1.3em;
+ height: 1.3em;
+ width: auto;
}
&:focus-visible {
@@ -71,7 +72,8 @@
padding: 0;
& :where(img, svg) {
- font-size: 1.5em;
+ height: 1.5em;
+ width: auto;
}
}
@@ -82,7 +84,7 @@
/* Style spinner when in button */
& .ds-spinner {
- font-size: 1.4em;
+ height: 1.4em;
}
/**
diff --git a/packages/css/src/spinner.css b/packages/css/src/spinner.css
index f4b551e2c1..00e360a89b 100644
--- a/packages/css/src/spinner.css
+++ b/packages/css/src/spinner.css
@@ -6,33 +6,32 @@
animation: ds-spinner-rotate-animation linear infinite var(--dsc-spinner-animation-duration);
box-sizing: border-box;
- font-size: var(--ds-size-11);
- height: 1em;
- width: 1em;
+ height: var(--ds-size-11);
+ width: auto;
- /* Using font-size to ensure consistent size when explicitly setting data-size */
+ /* Ensure consistent size when explicitly setting data-size */
&[data-size='2xs'] {
- font-size: 0.75rem;
+ height: 0.75rem;
}
&[data-size='xs'] {
- font-size: 1.25rem;
+ height: 1.25rem;
}
&[data-size='sm'] {
- font-size: 2rem;
+ height: 2rem;
}
&[data-size='md'] {
- font-size: 2.75rem;
+ height: 2.75rem;
}
&[data-size='lg'] {
- font-size: 3.75rem;
+ height: 3.75rem;
}
&[data-size='xl'] {
- font-size: 5.5rem;
+ height: 5.5rem;
}
}
diff --git a/packages/css/src/tabs.css b/packages/css/src/tabs.css
index f4a79a23f6..2319857f1f 100644
--- a/packages/css/src/tabs.css
+++ b/packages/css/src/tabs.css
@@ -60,7 +60,8 @@
& :where(img, svg) {
flex-shrink: 0; /* Never shrink icon */
- font-size: 1.25em; /* Auto scale icon based on font-size */
+ height: 1.25em; /* Auto scale icon based on font-size */
+ width: auto;
}
&::after {
diff --git a/packages/css/src/tag.css b/packages/css/src/tag.css
index 9c1ea0842c..e4ed88f100 100644
--- a/packages/css/src/tag.css
+++ b/packages/css/src/tag.css
@@ -26,7 +26,8 @@
& :where(img, svg) {
flex-shrink: 0;
- font-size: 1.25em;
+ height: 1.25em;
+ width: auto;
}
&:not([hidden]) {
diff --git a/packages/react/src/components/Combobox/internal/ComboboxClearButton.tsx b/packages/react/src/components/Combobox/internal/ComboboxClearButton.tsx
index 317733aff4..f5ecd61411 100644
--- a/packages/react/src/components/Combobox/internal/ComboboxClearButton.tsx
+++ b/packages/react/src/components/Combobox/internal/ComboboxClearButton.tsx
@@ -39,7 +39,7 @@ const ComboboxClearButton = forwardRef<
type='button'
aria-label={clearButtonLabel}
>
-
+
);
});
diff --git a/packages/react/src/components/Combobox/internal/ComboboxInput.tsx b/packages/react/src/components/Combobox/internal/ComboboxInput.tsx
index 27d52ab58a..289b13c8e8 100644
--- a/packages/react/src/components/Combobox/internal/ComboboxInput.tsx
+++ b/packages/react/src/components/Combobox/internal/ComboboxInput.tsx
@@ -155,9 +155,9 @@ const ComboboxInput = ({
{/* Arrow for combobox. Click is handled by the wrapper */}
{open ? (
-
+
) : (
-
+
)}
diff --git a/packages/react/src/components/link/link.stories.tsx b/packages/react/src/components/link/link.stories.tsx
index 163dc1c5ee..afdc3c58d3 100644
--- a/packages/react/src/components/link/link.stories.tsx
+++ b/packages/react/src/components/link/link.stories.tsx
@@ -46,28 +46,28 @@ export const InText: StoryFn = (args) => (
export const WithIcon: StoryFn = (args) => (
-
+
Kontakt oss
);
export const WithIconRight: StoryFn = (args) => (
Kontakt oss
-
+
);
export const WithMultipleIcons: StoryFn = (args) => (
-
+
Komponenter og
-
+
dokumentasjon på designsystemet.no
-
+
);
export const WithOnlyIcon: StoryFn = (args) => (
-
+
);