Skip to content

Commit

Permalink
lagt på style prop på Innholdsboks
Browse files Browse the repository at this point in the history
  • Loading branch information
MagnusRom committed May 14, 2024
1 parent 9e6c88b commit 4226db4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AvtaleSide/AvtaleStatus/StatusPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const StatusPanel: React.FunctionComponent<{
body?: JSX.Element;
}> = ({ header, body }) => {
return (
<Innholdsboks ariaLabel={header}>
<Innholdsboks ariaLabel={header} style={{ backgroundColor: '#FFECCC' }}>
<div className={cls.className}>
{header.length > 36 ? (
<Heading level="2" size="medium">
Expand Down
3 changes: 2 additions & 1 deletion src/komponenter/Innholdsboks/Innholdsboks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { PropsWithChildren } from 'react';
interface Props {
className?: string;
ariaLabel?: string;
style?: React.CSSProperties;
}

const Innholdsboks: React.FunctionComponent<PropsWithChildren<Props>> = (props) => (
<div className={classnames('innholdsboks', props.className)}>
<div className={classnames('innholdsboks', props.className)} style={props.style}>
<div className="innholdsboks__innhold">{props.children}</div>
</div>
);
Expand Down

0 comments on commit 4226db4

Please sign in to comment.