Skip to content

Commit

Permalink
fix(spindle-ui): add TextButton disabled style
Browse files Browse the repository at this point in the history
  • Loading branch information
herablog committed Oct 6, 2023
1 parent c5b90ad commit dc6f5ac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/spindle-ui/src/TextButton/TextButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
-webkit-tap-highlight-color: var(--TextButton-tapHighlightColor);
}

.spui-TextButton:disabled {
opacity: 0.3;
}

.spui-TextButton:focus {
outline: 2px solid var(--TextButton-onFocus-outlineColor);
outline-offset: 1px;
Expand Down Expand Up @@ -79,6 +83,10 @@
text-decoration: none;
}

.spui-TextButton:disabled {
text-decoration: none;
}

@media (hover: hover) {
.spui-TextButton:hover {
text-decoration: none;
Expand All @@ -87,4 +95,8 @@
:is(.spui-TextButton--hasIcon, .spui-TextButton--underlinehover):hover {
text-decoration: underline;
}

.spui-TextButton:disabled:hover {
text-decoration: none;
}
}

0 comments on commit dc6f5ac

Please sign in to comment.