nfg_ui 0.10.6 → 0.10.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_select2.scss +4 -0
- data/lib/nfg_ui/bootstrap/components/base.rb +12 -1
- data/lib/nfg_ui/bootstrap/components/button.rb +1 -1
- data/lib/nfg_ui/bootstrap/components/nav_link.rb +0 -4
- data/lib/nfg_ui/bootstrap/components/navbar_brand.rb +1 -1
- data/lib/nfg_ui/bootstrap/components/page_item.rb +1 -1
- data/lib/nfg_ui/components/elements/dropdown_item.rb +1 -1
- data/lib/nfg_ui/components/utilities/patches/integrated_slat_action.rb +1 -1
- data/lib/nfg_ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 516ad4b3292478b87bb2261f5ca04f40a3bae1e222b329a0561838d80552c99b
|
4
|
+
data.tar.gz: 4827e26728cbac1d5eccfa8cd617d939f37920f623bdf5e5f3de1aee85c5a721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c3604c90652de5a9bca3c86ed8c802fad95aafd9fdd9dc9387c09b0835e9ab7ccc9bc92152f04a37504764d6338addc689964dc56ca86cd5de712526f9416d5
|
7
|
+
data.tar.gz: 822faca199fbaeb348d56f352bd7109dbcbd2644f33ce078d7d8e17ee53eb584da5d8009fc6bfe6ab74c4b33858cdf3b2f75d7bcb35c9e73ba0e2174898fc282
|
@@ -12,6 +12,10 @@
|
|
12
12
|
body:not(.modal-open) {
|
13
13
|
.select2-container--default { z-index: $zindex-dropdown; }
|
14
14
|
}
|
15
|
+
body.modal-open {
|
16
|
+
.select2-container { z-index: $zindex-modal + 2 !important; } // makes select2 dropdown higher than redactor toolbar in modals
|
17
|
+
}
|
18
|
+
|
15
19
|
|
16
20
|
.select2-container--default {
|
17
21
|
&.select2-container--focus .select2-selection--multiple { border-color: $primary; }
|
@@ -65,8 +65,19 @@ module NfgUi
|
|
65
65
|
# Example: <div class>Text</div>
|
66
66
|
end
|
67
67
|
|
68
|
+
# Use view_context url_for method to ensure that
|
69
|
+
# when objects are passed into href, e.g.
|
70
|
+
# `href: @admin` will convert it to the
|
71
|
+
# correct path
|
72
|
+
#
|
73
|
+
# Likewise that hashes are also parsed correctly
|
74
|
+
# example:
|
75
|
+
# href: { controller: 'admin', action: 'show', id: 7 }
|
68
76
|
def href
|
69
|
-
options[:href]
|
77
|
+
options_href = options[:href]
|
78
|
+
|
79
|
+
return if options_href.blank?
|
80
|
+
view_context.url_for(options_href)
|
70
81
|
end
|
71
82
|
|
72
83
|
def id
|
@@ -47,7 +47,7 @@ module NfgUi
|
|
47
47
|
# Automatically supply an :href to the dropdown item when a modal is present
|
48
48
|
# so that the dropdown item presents correctly and appears clickable
|
49
49
|
def href
|
50
|
-
modal ?
|
50
|
+
super || (modal ? '#' : nil)
|
51
51
|
end
|
52
52
|
|
53
53
|
private
|
data/lib/nfg_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nfg_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Roehm
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|