Skip to content

Commit 2e04f5b

Browse files
committed
Fix feil replace fra tailwind upgrade script
1 parent ed7c629 commit 2e04f5b

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

apps/sif-demo-app/src/components/ShadowBox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Box } from '@navikt/ds-react';
22

33
const ShadowBox = ({ children }: { children: React.ReactNode }) => {
44
return (
5-
<Box borderRadius="medium" borderWidth="1" borderColor="border-subtle" padding="6" shadow-sm="xsmall">
5+
<Box borderRadius="medium" borderWidth="1" borderColor="border-subtle" padding="6" shadow="xsmall">
66
{children}
77
</Box>
88
);

apps/ungdomsytelse-deltaker/storybook/components/ShadowBox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Box } from '@navikt/ds-react';
22

33
const ShadowBox = ({ children }: { children: React.ReactNode }) => {
44
return (
5-
<Box borderRadius="medium" borderWidth="1" borderColor="border-subtle" padding="6" shadow-sm="medium">
5+
<Box borderRadius="medium" borderWidth="1" borderColor="border-subtle" padding="6" shadow="medium">
66
{children}
77
</Box>
88
);

apps/ungdomsytelse-deltaker/storybook/components/StoryFormWrapper.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface Props {
88

99
const StoryFormWrapper = ({ children, maxWidth = '35rem' }: Props) => (
1010
<VStack gap="8" maxWidth={maxWidth}>
11-
<Box borderRadius="medium" borderWidth="1" borderColor="border-subtle" padding="6" shadow-sm="medium">
11+
<Box borderRadius="medium" borderWidth="1" borderColor="border-subtle" padding="6" shadow="medium">
1212
{children}
1313
</Box>
1414
</VStack>

packages/sif-common-core-ds/src/components/picture-scanning-guide/PictureScanningGuide.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ const PictureScanningGuide = ({ headingLevel = '2' }: Props) => {
9696
</div>
9797
<div className={bem.element('cell')}>
9898
<PictureScanningExample
99-
image={<ScanningIcon status="shadow-2xs" height={svgIconHeight} />}
99+
image={<ScanningIcon status="shadow" height={svgIconHeight} />}
100100
status="feil"
101101
headingLevel={exampleHeadingLevel}
102102
statusText={text('@core.psg.bad')}
103-
description={text('@core.psg.icon.label.shadow-2xs')}
103+
description={text('@core.psg.icon.label.shadow')}
104104
/>
105105
</div>
106106
</div>

packages/sif-common-core-ds/src/components/picture-scanning-guide/i18n/pictureScanningGuideMessages.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const nb = {
2626
'@core.psg.icon.label.good': 'Dokumentet fyller hele bildet',
2727
'@core.psg.icon.label.keystone': 'Bildet er ikke tatt rett ovenfra',
2828
'@core.psg.icon.label.horizontal': 'Bildet har ikke riktig retning',
29-
'@core.psg.icon.label.shadow-2xs': 'Bildet har skygge på dokumentet',
29+
'@core.psg.icon.label.shadow': 'Bildet har skygge på dokumentet',
3030
'@core.psg.lenkepanel.url': 'https://www.nav.no/brukerstotte#sende-soknad-pa-nett',
3131
'@core.psg.lenkepanel.text': 'Mer hjelp til å laste opp vedlegg (åpnes i et nytt vindu).',
3232
};
@@ -56,7 +56,7 @@ const nn: Record<keyof typeof nb, string> = {
5656
'@core.psg.icon.label.good': 'Dokumentet fyller heile biletet',
5757
'@core.psg.icon.label.keystone': 'Biletet er ikkje teke rett ovanfrå.',
5858
'@core.psg.icon.label.horizontal': 'Biletet har ikkje rett retning',
59-
'@core.psg.icon.label.shadow-2xs': 'Biletet har skugge oppå dokumentet',
59+
'@core.psg.icon.label.shadow': 'Biletet har skugge oppå dokumentet',
6060
'@core.psg.lenkepanel.url': 'https://www.nav.no/brukerstotte#sende-soknad-pa-nett',
6161
'@core.psg.lenkepanel.text': 'Meir hjelp til opplasting av vedlegg (vert åpna i nytt vindauge).',
6262
};

packages/sif-common-core-ds/src/components/picture-scanning-guide/scanning-icon/ScanningIcon.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ interface ScanProps {
33
height?: number;
44
}
55

6-
type ScanIconStatusKey = 'good' | 'keystone' | 'horizontal' | 'shadow-2xs';
6+
type ScanIconStatusKey = 'good' | 'keystone' | 'horizontal' | 'shadow';
77

88
export interface Props extends ScanProps {
99
status: ScanIconStatusKey;
@@ -156,7 +156,7 @@ const ScanningIkon = (props: Props) => {
156156
return <KeystoneScanning title={title} height={height} />;
157157
case 'horizontal':
158158
return <HorizontalScanning title={title} height={height} />;
159-
case 'shadow-2xs':
159+
case 'shadow':
160160
return <ShadowScanning title={title} height={height} />;
161161
default:
162162
return <GoodScanning title={title} height={height} />;

0 commit comments

Comments
 (0)