Skip to content

Commit

Permalink
Remove contrast default on split and shifted hero components
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Dec 5, 2024
1 parent 3d11a2c commit 5b742f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
### Changed

- Shifted and split hero components no longer assume a contrasted background by default

### Deprecated
### Removed
### Fixed
Expand Down
8 changes: 0 additions & 8 deletions src/nationalarchives/components/hero/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,6 @@ $shift-units: 5 !default;
&--split {
}

&--split:not(.tna-background-accent, .tna-background-tint) {
@include colour.contrast;
}

&--split &__figure {
min-height: clamp(15rem, #{math.div(100vw, 3)}, 50rem);
padding-top: spacing.space(2);
Expand Down Expand Up @@ -231,10 +227,6 @@ $shift-units: 5 !default;
top: spacing.space($shift-units);
}

&--shift:not(.tna-background-accent, .tna-background-tint) &__content-inner {
@include colour.contrast;
}

&--narrow {
}

Expand Down

0 comments on commit 5b742f9

Please # to comment.