blacklight-frontend 7.22.1 → 7.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -441,7 +441,7 @@ Blacklight.modal.checkCloseModal = function (event) {
441
441
  };
442
442
 
443
443
  Blacklight.modal.hide = function (el) {
444
- if (bootstrap.Modal.VERSION >= "5") {
444
+ if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") {
445
445
  bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).hide();
446
446
  } else {
447
447
  $(el || Blacklight.modal.modalSelector).modal('hide');
@@ -449,7 +449,7 @@ Blacklight.modal.hide = function (el) {
449
449
  };
450
450
 
451
451
  Blacklight.modal.show = function (el) {
452
- if (bootstrap.Modal.VERSION >= "5") {
452
+ if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") {
453
453
  bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).show();
454
454
  } else {
455
455
  $(el || Blacklight.modal.modalSelector).modal('show');
@@ -12,6 +12,7 @@
12
12
  cursor: default;
13
13
  text-overflow: ellipsis;
14
14
  overflow: hidden;
15
+ white-space: nowrap;
15
16
 
16
17
  @media (max-width: breakpoint-min(sm)) {
17
18
  max-width: breakpoint-min(sm) * .5;
@@ -62,6 +62,12 @@
62
62
 
63
63
  .card-header {
64
64
  @extend .bg-success;
65
+
66
+ .btn {
67
+ @if function-exists(color-contrast) {
68
+ color: color-contrast($success);
69
+ }
70
+ }
65
71
  }
66
72
  }
67
73
 
@@ -206,7 +206,7 @@ Blacklight.modal.checkCloseModal = function(event) {
206
206
  }
207
207
 
208
208
  Blacklight.modal.hide = function(el) {
209
- if (bootstrap.Modal.VERSION >= "5") {
209
+ if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") {
210
210
  bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).hide();
211
211
  } else {
212
212
  $(el || Blacklight.modal.modalSelector).modal('hide');
@@ -214,7 +214,7 @@ Blacklight.modal.hide = function(el) {
214
214
  }
215
215
 
216
216
  Blacklight.modal.show = function(el) {
217
- if (bootstrap.Modal.VERSION >= "5") {
217
+ if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") {
218
218
  bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).show();
219
219
  } else {
220
220
  $(el || Blacklight.modal.modalSelector).modal('show');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blacklight-frontend",
3
- "version": "7.22.1",
3
+ "version": "7.25.0",
4
4
  "description": "[![Build Status](https://travis-ci.com/projectblacklight/blacklight.png?branch=main)](https://travis-ci.com/projectblacklight/blacklight) [![Gem Version](https://badge.fury.io/rb/blacklight.png)](http://badge.fury.io/rb/blacklight) [![Coverage Status](https://coveralls.io/repos/github/projectblacklight/blacklight/badge.svg?branch=main)](https://coveralls.io/github/projectblacklight/blacklight?branch=main)",
5
5
  "main": "app/assets/javascripts/blacklight",
6
6
  "scripts": {