Skip to content

Commit 43c818d

Browse files
committed
download button tweak
1 parent c57d8f7 commit 43c818d

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

src/components/GithubReleases/GithubReleases.astro

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function getPlatformType(assetName: string): PlatformType {
175175

176176
.download-button-wrapper {
177177
display: flex;
178-
height: 78px;
178+
height: 64px;
179179
padding: 0px 20px;
180180
justify-content: space-between;
181181
align-items: center;
@@ -186,9 +186,18 @@ function getPlatformType(assetName: string): PlatformType {
186186
cursor: pointer;
187187
transition: all 0.2s ease;
188188

189+
// Default state for SVG
190+
svg {
191+
path {
192+
stroke: currentColor;
193+
transition: stroke 0.2s ease;
194+
}
195+
}
196+
189197
&:hover {
190198
background-color: var(--surface-frame-bg);
191199
border-color: #0c8ce0;
200+
color: #0c8ce0; // Set color on the wrapper itself
192201

193202
.download-text-wrapper {
194203
.download-filename {
@@ -198,14 +207,14 @@ function getPlatformType(assetName: string): PlatformType {
198207
color: var(--theme-text);
199208
}
200209
}
201-
210+
202211
svg {
203212
path {
204-
stroke: #0c8ce0 !important;
213+
stroke: currentColor; // Use currentColor to inherit from parent
205214
}
206215
}
207216
}
208-
}
217+
}
209218

210219
.download-text-wrapper {
211220
display: flex;
@@ -216,6 +225,7 @@ function getPlatformType(assetName: string): PlatformType {
216225

217226
.download-filename {
218227
@include typography(paragraph);
228+
font-size: calc(18px * var(--font-scale-factor));
219229
color: var(--theme-text);
220230
}
221231

src/components/buttons/DownloadButton/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
.download-main {
6767
display: flex;
68-
height: 78px;
68+
height: 64px;
6969
padding: 0px 20px;
7070
justify-content: space-between;
7171
align-items: center;
@@ -98,6 +98,7 @@
9898
justify-content: flex-start;
9999
align-items: flex-start;
100100
@include typography(paragraph);
101+
font-size: calc(18px * var(--font-scale-factor));
101102
transition: color 0.2s ease;
102103

103104
p {

0 commit comments

Comments
 (0)