beyond-rails 0.0.197 → 0.0.202

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9032014c8dc22090470a9bf2ee4c3b6f861b530f6b20538896f266f3d8ca67bc
4
- data.tar.gz: 6dc03f407892516d8be8bbdb31c43489f925525bac7ac44c890f5b2fec2f3f69
3
+ metadata.gz: c816a4705572ba5547e235aa306aa86bdb1a378f2e726305bfd72cab13817de1
4
+ data.tar.gz: 6e3ce062286f84b8b390a7a905168a362f6aa2a41ae60aeff0d96d422c104b88
5
5
  SHA512:
6
- metadata.gz: 86f51a12a50544e2d4b6a078b4bd54298f0da1072bad2bba792a77e44222c358dbe76716a56242b34eaa350df6cd138ada2c3455a67e6e848f3be27fe7e4f96d
7
- data.tar.gz: 3199bbbdd249ae0589a52dcfbf11eeaf186b25cf56fb5e42f1f55719a28cdbfccc05edc4dadb606a88cb7ac515e3a06035b107f6b66b28893f6c35f823d1afeb
6
+ metadata.gz: d1f3a3c4252e1a060e277a1adee4b7936f9d0ff4897f5f7cde4839e868b7a08b36a871965ab0fa6bd3b3fde096e562f60440f5b543c0fea7d3b04e59f983af71
7
+ data.tar.gz: fc0200739a4d9eee637fbc3960e0be00a1ecca07d711a83ad54a516c7a19648e4a8feba55a217646b53dd733f5dd03e85b9ced0985aaf43ebca2f664e1fbb21d
@@ -34,8 +34,17 @@ export default class Dropdown {
34
34
  }
35
35
 
36
36
  init() {
37
+
38
+ if (! this.dom) {
39
+ throw new Error('dom is missing in Dropdown class')
40
+ }
41
+
37
42
  this.id = this.dom.dataset.target
38
43
  this.menu = document.querySelector(`[data-dropdown-menu="${this.id}"]`)
44
+
45
+ if (! this.menu) {
46
+ throw new Error(`menu ${this.id} is missing in Dropdown class`)
47
+ }
39
48
  this.place = this.menu.dataset.place || 'bottom'
40
49
  this.align = this.menu.dataset.align
41
50
  this.menu.remove()
@@ -122,13 +122,13 @@ $color-active: #5469d4;
122
122
  }
123
123
 
124
124
  .align-left {
125
- text-align: left;
125
+ text-align: left !important;
126
126
  }
127
127
  .align-right {
128
- text-align: right;
128
+ text-align: right !important;
129
129
  }
130
130
  .align-center {
131
- text-align: center;
131
+ text-align: center !important;
132
132
  }
133
133
 
134
134
  .sr-only {
@@ -2,6 +2,7 @@
2
2
  outline: 0;
3
3
  background-color: #fff;
4
4
  display: inline-flex;
5
+ justify-content: center;
5
6
  align-items: center;
6
7
  border: 0;
7
8
  padding: 6px 12px 7px;
@@ -66,7 +67,7 @@
66
67
  cursor: not-allowed;
67
68
  }
68
69
  .icon {
69
- margin-right: .7em;
70
+ margin-right: .4em;
70
71
  }
71
72
  }
72
73
  .btn-loader {
@@ -112,6 +113,9 @@
112
113
  &:focus {
113
114
  @include focus-outline;
114
115
  }
116
+ &.active {
117
+ background-color: #f3f3f7;
118
+ }
115
119
  }
116
120
 
117
121
  .btn .badge {
@@ -220,7 +220,7 @@ label {
220
220
  font-size: 80%;
221
221
  margin-top: .35rem;
222
222
  &:before {
223
- font-family: 'icomoon';
223
+ font-family: $beyond-icon-font-name;
224
224
  display: inline-block;
225
225
  }
226
226
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.197
4
+ version: 0.0.202
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-18 00:00:00.000000000 Z
12
+ date: 2020-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc