Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
fix: ghost button interactive states
Browse files Browse the repository at this point in the history
Ensure that the ghost type button has the same initial and interactive states as common links

Fix #536
  • Loading branch information
Schalk Neethling committed Mar 18, 2021
1 parent f8c46c0 commit dff7778
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
17 changes: 17 additions & 0 deletions sass/atoms/_buttons-ghost.scss
@@ -0,0 +1,17 @@
/* Turns off background and border and set cursor to pointer. */
.ghost {
background: none;
border: 0;
cursor: pointer;
text-decoration: underline;

&:hover,
&:focus {
text-decoration: none;
}

&:active {
background-color: $primary-50;
color: $neutral-600;
}
}
7 changes: 0 additions & 7 deletions sass/atoms/_buttons.scss
Expand Up @@ -103,13 +103,6 @@ a.minimal {
}
}

/* Turns off background and border and set cursor to pointer. */
.ghost {
background: none;
border: 0;
cursor: pointer;
}

.icon-button {
svg {
fill: currentColor;
Expand Down
1 change: 1 addition & 0 deletions sass/mdn-minimalist.scss
Expand Up @@ -28,6 +28,7 @@
@import "./atoms/kbd";
@import "./atoms/primsjs";
@import "./atoms/buttons";
@import "./atoms/buttons-ghost";
@import "./atoms/forms";
@import "./atoms/tables";
@import "./atoms/overlays";
Expand Down

0 comments on commit dff7778

Please sign in to comment.