Skip to content

Commit

Permalink
refactor: use --sbb-hover-image-brightness token for images (#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored Aug 29, 2024
1 parent 744b248 commit 75b44c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/elements/teaser-hero/teaser-hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// which appears in normalize css of several frameworks.
outline: none !important;

--sbb-teaser-hero-brightness-hover: 1.075;
--sbb-teaser-hero-brightness-hover: var(--sbb-hover-image-brightness);
--sbb-teaser-hero-chip-inset: var(--sbb-spacing-responsive-xxxs) auto auto
var(--sbb-spacing-responsive-xxxs);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use '../../core/styles/index' as sbb;

:host {
--sbb-teaser-product-brightness-hover: 1.075;
--sbb-teaser-product-brightness-hover: var(--sbb-hover-image-brightness);
--sbb-teaser-product-animation-duration: var(
--sbb-disable-animation-zero-time,
var(--sbb-animation-duration-4x)
Expand Down
2 changes: 1 addition & 1 deletion src/elements/teaser/teaser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
--sbb-teaser-gap: var(--sbb-spacing-fixed-4x);
--sbb-teaser-width: fit-content;
--sbb-teaser-border-radius: var(--sbb-border-radius-4x);
--sbb-teaser-brightness-hover: 1.075;
--sbb-teaser-brightness-hover: var(--sbb-hover-image-brightness);
--sbb-teaser-animation-duration: var(
--sbb-disable-animation-zero-time,
var(--sbb-animation-duration-4x)
Expand Down

0 comments on commit 75b44c2

Please sign in to comment.