Skip to content

Commit

Permalink
Rename image loader animation SCSS variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 2, 2025
1 parent 8f60cfb commit 54edd51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The `data-preferenceskey` and `data-policieskey` attributes on the cookies component are now `data-preferences-key` and `data-policies-key`
- The `data-disableautofocus` attribute on the error summary component is now `data-disable-autofocus`
- The `data-informationlabelopen` and `data-informationlabelclose` attributes on the picture component are now `data-information-label-open` and `data-information-label-close`
- `$disable-image-loader-animations` (default: `false`) in `variables/features` has changed to `$image-loader-animations` (default: `true`)

### Deprecated
### Removed
Expand Down
2 changes: 1 addition & 1 deletion src/nationalarchives/tools/_colour.scss
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@
}

@mixin image-loader-background {
@if not features.$disable-image-loader-animations {
@if features.$image-loader-animations {
background: linear-gradient(
-45deg,
rgba(0 0 0 / 25%),
Expand Down
2 changes: 1 addition & 1 deletion src/nationalarchives/variables/_features.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$debug-interactable-areas: false !default;
$disable-image-loader-animations: false !default;
$image-loader-animations: true !default;

0 comments on commit 54edd51

Please sign in to comment.