Skip to content

Commit 0b9724f

Browse files
committed
download button tweak
1 parent 1a583c5 commit 0b9724f

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

src/components/synthetic-data/export-button.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ export const ExportButton = ({
2626
}) => {
2727
const { t } = useTranslation();
2828
return (
29-
<div className="ml-auto flex flex-row gap-2 hideonprint">
29+
<div className="flex flex-row gap-2 hideonprint">
3030
<DropdownMenu>
3131
<DropdownMenuTrigger asChild>
32-
<Button variant="outline" size="sm" className="p-4 text-sm">
32+
<Button
33+
variant="default"
34+
size="sm"
35+
className="mx-auto py-6 px-4 text-sm bg-aaRegularLight hover:bg-aaRegularLight text-black hover:text-black transform transition-colors duration-200 group"
36+
>
3337
{t('downloadButton')}
3438
<ChevronDown className="relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180" />
3539
</Button>
@@ -40,15 +44,15 @@ export const ExportButton = ({
4044
>
4145
<DropdownMenuItem
4246
onClick={() => reactToPrintFn()}
43-
className="flex flex-row items-center"
47+
className="flex flex-row items-center cursor-pointer"
4448
>
4549
<Share className="size-3.5 mr-2" />
4650
{t('syntheticData.exportToPDF')}
4751
</DropdownMenuItem>
4852
{clusterInfo && (
4953
<>
5054
<DropdownMenuItem
51-
className="flex flex-row items-center"
55+
className="flex flex-row items-center cursor-pointer"
5256
onClick={() => {
5357
downloadFile(
5458
JSON.stringify(
@@ -68,7 +72,7 @@ export const ExportButton = ({
6872
{t('syntheticData.exportToJSON')}
6973
</DropdownMenuItem>
7074
<DropdownMenuItem
71-
className="flex flex-row items-center"
75+
className="flex flex-row items-center cursor-pointer"
7276
onClick={() => {
7377
handleExport(
7478
clusterInfo.syntheticData as object[]

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818
@apply min-w-[800px];
1919
width: 800px !important;
2020
}
21+
22+
button:has(+ [data-radix-popper-content-wrapper]) {
23+
@apply bg-aaRegularLight text-black;
24+
}

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default {
2222
},
2323
colors: {
2424
aaLight: '#deecf7',
25+
aaRegularLight: '#c5d8eb',
2526
aaRegular: '#005aa7',
2627
aaDark: '#0a3f70',
2728
},

0 commit comments

Comments
 (0)