]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(playground): fix github button style (#7722)
authorBeADre <beadre_wang@163.com>
Sun, 9 Jul 2023 05:04:47 +0000 (13:04 +0800)
committerGitHub <noreply@github.com>
Sun, 9 Jul 2023 05:04:47 +0000 (13:04 +0800)
* fix(playground): fix github button style

* style: merge selector

* Update Header.vue

---------

Co-authored-by: GU Yiling <justice360@gmail.com>
packages/sfc-playground/src/Header.vue

index e6e4521bdb7f287e7f7d3af78ad44f6ab4510ca3..d8271b8e528af354c8f73f38b834bda5c963b6ee 100644 (file)
@@ -161,14 +161,14 @@ async function fetchVersions(): Promise<string[]> {
       >
         <Download />
       </button>
-      <button title="View on GitHub" class="github">
-        <a
-          href="https://github.com/vuejs/core/tree/main/packages/sfc-playground"
-          target="_blank"
-        >
-          <GitHub />
-        </a>
-      </button>
+      <a
+        href="https://github.com/vuejs/core/tree/main/packages/sfc-playground"
+        target="_blank"
+        title="View on GitHub"
+        class="github"
+      >
+        <GitHub />
+      </a>
     </div>
   </nav>
 </template>
@@ -302,12 +302,13 @@ h1 img {
 }
 
 .links button,
-.links button a {
+.links .github {
+  padding: 1px 6px;
   color: var(--btn);
 }
 
 .links button:hover,
-.links button:hover a {
+.links .github:hover {
   color: var(--highlight);
 }