Skip to content

Commit

Permalink
style(endringslogg): gjort ikon mindre, midtstilt bedre
Browse files Browse the repository at this point in the history
Gjort ikonet mindre
  • Loading branch information
gunnsteingarmo committed Aug 27, 2024
1 parent 13eb681 commit 6ae18a2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
11 changes: 5 additions & 6 deletions packages/familie-endringslogg/src/endringslogg.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.endringslogg {
width: fit-content;
position: relative;
display: flex;
align-self: center;
margin-right: 1.25rem;
}

.collapse-header {
Expand Down Expand Up @@ -137,12 +138,10 @@
float: left;
}
.endringslogg-dropDown {
padding: 0.2rem;
outline: transparent;
border: none;
cursor: pointer;
background-color: transparent;
margin-top: 0.2rem;
}
.endringslogg-dropDown:focus {
fill: var(--a-surface-action);
Expand Down Expand Up @@ -211,8 +210,8 @@
}
.ring-container {
position: relative;
bottom: 46px;
left: 31px;
bottom: 460px;
left: 22px;
}
.circle {
width: 1.2rem;
Expand Down
4 changes: 2 additions & 2 deletions packages/familie-endringslogg/src/icons/endringslogg-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const EndringsloggIkon: React.FC<Props> = ({ className, height, width, stil = 'm
<svg
data-name="Layer 1"
className={className}
height={height || '40'}
width={width || '40'}
height={height || '32'}
width={width || '32'}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 32 32"
>
Expand Down
8 changes: 8 additions & 0 deletions packages/familie-header/header.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
} from '@navikt/familie-typer';
import { BodyShort } from '@navikt/ds-react';
import { idnr } from '@navikt/fnrvalidator';
import { Endringslogg } from '@navikt/familie-endringslogg';

export default {
component: Header,
Expand Down Expand Up @@ -142,6 +143,13 @@ export const HeaderOgSøk: React.FC = ({ ...args }) => {
console.log('Du har klikket på et av resultatene', x);
}}
/>
<Endringslogg
userId={'23452345fdbsssssh1234' + new Date()}
appId={'EF'}
backendUrl={'https://familie-endringslogg.intern.dev.nav.no/'}
appName={'Enslig forsørger'}
stil="lys"
/>
</Header>

<div>
Expand Down

0 comments on commit 6ae18a2

Please sign in to comment.