Skip to content

Commit 5ee992c

Browse files
BeADreJustineo
andauthored
fix(playground): fix github button style (#7722)
* fix(playground): fix github button style * style: merge selector * Update Header.vue --------- Co-authored-by: GU Yiling <[email protected]>
1 parent 516fabb commit 5ee992c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

packages/sfc-playground/src/Header.vue

+11-10
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ async function fetchVersions(): Promise<string[]> {
161161
>
162162
<Download />
163163
</button>
164-
<button title="View on GitHub" class="github">
165-
<a
166-
href="https://github.com/vuejs/core/tree/main/packages/sfc-playground"
167-
target="_blank"
168-
>
169-
<GitHub />
170-
</a>
171-
</button>
164+
<a
165+
href="https://github.com/vuejs/core/tree/main/packages/sfc-playground"
166+
target="_blank"
167+
title="View on GitHub"
168+
class="github"
169+
>
170+
<GitHub />
171+
</a>
172172
</div>
173173
</nav>
174174
</template>
@@ -302,12 +302,13 @@ h1 img {
302302
}
303303
304304
.links button,
305-
.links button a {
305+
.links .github {
306+
padding: 1px 6px;
306307
color: var(--btn);
307308
}
308309
309310
.links button:hover,
310-
.links button:hover a {
311+
.links .github:hover {
311312
color: var(--highlight);
312313
}
313314

0 commit comments

Comments
 (0)