Skip to content

Commit b386d34

Browse files
committed
Finere nytt-vindu knapp
1 parent 11f2791 commit b386d34

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/main-section/content-view/html-view/HtmlView.module.css

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212

1313
.fullscreenButton {
1414
position: absolute;
15-
top: 0.25rem;
16-
left: 0.25rem;
17-
background-color: var(--a-white);
15+
bottom: 0.25rem;
16+
right: 1.5rem;
1817
}
1918

2019
.hidden {

src/components/main-section/content-view/html-view/HtmlView.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useRef } from 'react';
22
import { classNames } from '../../../../utils/classNames';
33
import { Button } from '@navikt/ds-react';
44
import { useAppState } from '../../../../state/useAppState';
5+
import { ExpandIcon } from '@navikt/aksel-icons';
56

67
import style from './HtmlView.module.css';
78

@@ -21,10 +22,11 @@ export const HtmlView = ({ html, versionKey, hidden }: Props) => {
2122
<div className={classNames(style.wrapper, hidden && style.hidden)}>
2223
<Button
2324
size={'small'}
24-
variant={'tertiary'}
25+
variant={'primary'}
2526
as={'a'}
2627
href={fullscreenPath}
2728
className={style.fullscreenButton}
29+
icon={<ExpandIcon />}
2830
onClick={(e) => {
2931
e.preventDefault();
3032
window.open(fullscreenPath, '_blank');

0 commit comments

Comments
 (0)