Skip to content

Commit 3fc5ef7

Browse files
committed
Tweaker disabled state
1 parent d025cec commit 3fc5ef7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/main-section/content-view/pdf-exporter/PdfExporter.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export const PdfExporter = ({ content, hidden }: Props) => {
138138
<DownloadLink
139139
href={`${pdfApi}/multi/${versionKeysSelected.join(',')}`}
140140
icon={<DownloadIcon />}
141+
disabled={versionKeysSelected.length === 0}
141142
>
142143
{`Last ned ${versionKeysSelected.length} ${versionKeysSelected.length === 1 ? 'valgt versjon' : 'valgte versjoner'}`}
143144
</DownloadLink>

src/components/main-section/content-view/pdf-exporter/download-link/DownloadLink.module.css

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@
3939
&.disabled {
4040
color: var(--a-gray-400);
4141
cursor: not-allowed;
42+
border: none;
4243

4344
&:hover {
44-
background-color: unset;
45+
background-color: var(--a-white);
4546
}
4647

4748
&:active {
48-
color: unset;
49-
background-color: unset;
49+
color: var(--a-gray-400);
50+
background-color: var(--a-gray-200);
5051
}
5152
}
5253
}

0 commit comments

Comments
 (0)