Skip to content

Commit

Permalink
NBNP-397 Replace custom facet throbber w/ Ajax Loader > overlay, CSS …
Browse files Browse the repository at this point in the history
…override
  • Loading branch information
jtmcd75 committed Aug 10, 2023
1 parent f313155 commit f1df915
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
1 change: 1 addition & 0 deletions build/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"drupal/address": "1.12",
"drupal/allowed_formats": "2.0.0",
"drupal/antibot": "2.0.2",
"drupal/ajax_loader": "2.1.0",
"drupal/bootstrap_barrio": "5.1.10",
"drupal/chosen": "3.0.5",
"drupal/conditional_fields": "4.0.0-alpha3",
Expand Down
1 change: 1 addition & 0 deletions config-yml/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _core:
default_config_hash: R4IF-ClDHXxblLcG0L7MgsLvfBIMAvi_skumNFQwkDc
module:
address: 0
ajax_loader: 0
alert_scheduler_client: 0
allowed_formats: 0
antibot: 0
Expand Down
13 changes: 0 additions & 13 deletions custom/themes/newspapers_lib_unb_ca/newspapers_lib_unb_ca.theme
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,3 @@ function newspapers_lib_unb_ca_preprocess_breadcrumb(&$variables) {
}

}

/**
* Implements hook_page_attachments_alter().
*/
function newspapers_lib_unb_ca_page_attachments_alter(&$page){
$path = $current_path = \Drupal::service('path.current')->getPath();

if(substr($path,0,15) === '/serials/browse' ||
substr($path, -6) === 'search') {
// Add ajax throbber fix to Digital page lister > Issue browse.
$page['#attached']['library'][] = 'newspapers_lib_unb_ca/ajax_loading';
}
}
8 changes: 8 additions & 0 deletions custom/themes/newspapers_lib_unb_ca/src/scss/_facets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,11 @@ label.checkbox-toggle:hover {
.item-list__range_slider li {
list-style-type: none;
}

.ajax-progress {
.ajax-throbber {
& > div {
background-color: $link-color-hover;
}
}
}

0 comments on commit f1df915

Please sign in to comment.