Skip to content

Commit

Permalink
fix(styles): update disabled card hover styles (#9892)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

#9815

### Description

Removes hover styles from `disabled` card links.

### Changelog

**New**

- add disabled hover styles to card links

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
kennylam authored Jan 13, 2023
1 parent 3fdd70e commit 9abfdb9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/styles/scss/components/card/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2016, 2022
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -42,6 +42,14 @@
background-color: $hover-ui;
}

&.#{$prefix}--card__CTA--disabled.#{$prefix}--tile--clickable {
background-color: $ui-01;

> * {
background-color: $ui-01;
}
}

::slotted(#{$dds-prefix}-image),
::slotted(#{$dds-prefix}-card-cta-image),
.#{$prefix}--card__img,
Expand Down

0 comments on commit 9abfdb9

Please sign in to comment.