Skip to content

Commit 49bf4f2

Browse files
committed
fix(playground): fix github button style
1 parent a0e7dc3 commit 49bf4f2

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

packages/sfc-playground/src/Header.vue

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ async function fetchVersions(): Promise<string[]> {
149149
>
150150
<Download />
151151
</button>
152-
<button title="View on GitHub" class="github">
153-
<a
154-
href="https://github.com/vuejs/core/tree/main/packages/sfc-playground"
155-
target="_blank"
156-
>
157-
<GitHub />
158-
</a>
159-
</button>
152+
<a
153+
href="https://github.com/vuejs/core/tree/main/packages/sfc-playground"
154+
target="_blank"
155+
title="View on GitHub"
156+
class="github"
157+
>
158+
<GitHub />
159+
</a>
160160
</div>
161161
</nav>
162162
</template>
@@ -299,6 +299,15 @@ h1 img {
299299
color: var(--highlight);
300300
}
301301
302+
.links .github {
303+
color: var(--btn);
304+
padding: 1px 6px;
305+
}
306+
307+
.links .github:hover {
308+
color: var(--highlight);
309+
}
310+
302311
.version:hover .active-version::after {
303312
border-top-color: var(--btn);
304313
}

0 commit comments

Comments
 (0)