Skip to content

Commit

Permalink
dot not override disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Jun 21, 2024
1 parent 6cc1570 commit abf0cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Button/IconButton/IconButton.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ limitations under the License.
}

@media (hover) {
.icon-button.destructive:hover {
.icon-button:not([aria-disabled="true"]).destructive:hover {
background: var(--cpd-color-bg-critical-subtle);
outline: 1px solid var(--cpd-color-border-critical-subtle);
}
}

.icon-button.destructive > * {
.icon-button:not([aria-disabled="true"]).destructive > * {
color: var(--cpd-color-icon-critical-primary);
}

0 comments on commit abf0cea

Please sign in to comment.