💄 Gjør små styling forbedringer, forbedret UU ved å lage skillelinjer i forms

This commit is contained in:
Markus Johansen 2023-08-02 18:50:48 +02:00
parent 65c146fa87
commit 194bda6739
5 changed files with 20 additions and 3 deletions

View file

@ -1,5 +1,5 @@
import { FileImageIcon, UploadIcon } from "@navikt/aksel-icons"
import { Button } from "@navikt/ds-react"
import { Button, Heading } from "@navikt/ds-react"
/**
@ -10,6 +10,9 @@ import { Button } from "@navikt/ds-react"
const BildeOpplastning = () => {
return(
<div className="flex gap-2 flex-col">
<Heading size="xsmall">
Skjermbilder
</Heading>
<div className="
h-48 p-5 bg-bg-subtle hover:bg-surface-selected border-2 border-blue-500
rounded-lg border-dashed flex flex-col items-center justify-center text-center gap-2

View file

@ -11,7 +11,7 @@ interface modalInterface {
const FeilModal = (props: modalInterface) => {
return(
<Modal
className="w-3/5"
className="w-3/5 p-5"
open={props.open}
aria-label={" modal"}
onClose={() => props.setOpen(false)}

View file

@ -3,6 +3,7 @@ import { TextField, Textarea, RadioGroup, Radio, Button, Switch } from "@navikt/
import { useState } from "react"
import { FeilmeldingsInnholdInterface } from "../interface"
import axios from "axios"
import Skillelinje from "./Skillelinje"
interface redigeringsInterface extends FeilmeldingsInnholdInterface {
reset: () => void
@ -53,6 +54,7 @@ const RedigeringsVerktoy = (props: redigeringsInterface) => {
value={beskrivelse}
onChange={e => setBeskrivelse(e.target.value)}
/>
<Skillelinje/>
<RadioGroup
legend="Velg arbeidsstatus for feil"
onChange={(arbeidsstatus: number) => {setArbeidsstatus(arbeidsstatus)}}
@ -62,6 +64,7 @@ const RedigeringsVerktoy = (props: redigeringsInterface) => {
<Radio value={1}>Feilen jobbes med</Radio>
<Radio value={2}>Feilen er fikset</Radio>
</RadioGroup>
<Skillelinje/>
<Switch checked={haster} onClick={() => setHaster(!haster)}>
Saken haster
</Switch>
@ -87,4 +90,4 @@ const RedigeringsVerktoy = (props: redigeringsInterface) => {
</div>
)
}
export default RedigeringsVerktoy;
export default RedigeringsVerktoy;

View file

@ -0,0 +1,8 @@
const Skillelinje = () => {
return (
<div className="h-1 bg-gray-200 my-4 rounded-lg w-full"></div>
)
}
export default Skillelinje

View file

@ -7,6 +7,7 @@ import { useState } from "react";
import BildeOpplastning from "../components/BildeOpplastning";
import Header from "../components/Header";
import { useNavigate } from "react-router-dom";
import Skillelinje from "../components/Skillelinje";
export default function Feil() {
const [tittel, setTittel] = useState("");
@ -85,7 +86,9 @@ export default function Feil() {
description="Detaljert beskrivelse av problemet"
onChange={e => setBeskrivelse(e.target.value)}
/>
<Skillelinje/>
<BildeOpplastning/>
<Skillelinje/>
</div>
<div className="w-1/2 flex flex-col gap-2 justify-center">
{status != 0 ? handleAlerts() : <></>}