Skip to content

Commit

Permalink
fix(selectable-tile): selected gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Dec 6, 2023
1 parent 5c652df commit 9c63464
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ class CDSAccordionItem extends FocusMixin(LitElement) {
)
);
}
const content = this.shadowRoot!.querySelector(`.${prefix}--accordion__wrapper`) as HTMLElement;
const content = this.shadowRoot!.querySelector(
`.${prefix}--accordion__wrapper`
) as HTMLElement;

if (this.open) {
// accordion opens
Expand Down
15 changes: 15 additions & 0 deletions packages/carbon-web-components/src/components/tile/tile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,21 @@ $css--plex: true !default;
}
}

:host(#{$prefix}-selectable-tile[slug]) .#{$prefix}--tile--is-selected {
border: 1px solid $layer-selected-inverse;
.#{$prefix}--tile__checkmark {
z-index: 1;
}
}

:host(#{$prefix}-selectable-tile[slug]) .#{$prefix}--tile--is-selected::after {
@include callout-gradient('selected');
}

:host(#{$prefix}-selectable-tile[slug]) .#{$prefix}--tile--is-selected::after {
opacity: 1;
}

:host(#{$prefix}-clickable-tile) {
::slotted(#{$prefix}-slug) {
pointer-events: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@

.#{$prefix}--accordion__wrapper {
/* stylelint-disable declaration-no-important */
// TODO: see if we can remove. Need important to override accordion inline styles.
// TODO: see if we can remove. Need important to override accordion inline styles.
max-block-size: none !important;
/* stylelint-enable declaration-no-important */
}
Expand Down

0 comments on commit 9c63464

Please sign in to comment.