Skip to content

Commit 632ade6

Browse files
committed
[dashboard] add button.gp-link CSS class
To be used for anchor tags that should've been buttons because they don't really bring the user to any new location.
1 parent 2037329 commit 632ade6

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

components/dashboard/src/index.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,13 @@
6161
@apply cursor-default opacity-50 pointer-events-none;
6262
}
6363

64-
a.gp-link {
65-
@apply text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-500;
64+
button.gp-link {
65+
@apply bg-transparent hover: bg-transparent p-0 rounded-none;
66+
}
67+
68+
a.gp-link,
69+
button.gp-link {
70+
@apply text-blue-500 hover: text-blue-600 dark:text-blue-400 dark:hover:text-blue-500;
6671
}
6772

6873
input[type=text], input[type=search], input[type=password], select {

components/dashboard/src/projects/NewProject.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ export default function NewProject() {
368368
<p className="text-gray-500 text-center text-base mt-12">
369369
{loaded && noReposAvailable ? "Select account on " : "Select a Git repository on "}
370370
<b>{selectedProviderHost}</b> (
371-
<a className="gp-link cursor-pointer" onClick={() => setShowGitProviders(true)}>
371+
<button className="gp-link cursor-pointer" onClick={() => setShowGitProviders(true)}>
372372
change
373-
</a>
373+
</button>
374374
)
375375
</p>
376376
<div className={`mt-2 flex-col ${noReposAvailable && isGitHub() ? "w-96" : ""}`}>
@@ -493,13 +493,12 @@ export default function NewProject() {
493493
<div>
494494
<div className="text-gray-500 text-center w-96 mx-8">
495495
Repository not found?{" "}
496-
<a
497-
href="javascript:void(0)"
496+
<button
498497
onClick={(e) => reconfigure()}
499-
className="text-gray-400 underline underline-thickness-thin underline-offset-small hover:text-gray-600"
498+
className="gp-link text-gray-400 underline underline-thickness-thin underline-offset-small hover:text-gray-600"
500499
>
501500
Reconfigure
502-
</a>
501+
</button>
503502
</div>
504503
</div>
505504
)}

0 commit comments

Comments
 (0)