@materializecss/materialize 1.2.2 → 2.0.1-alpha

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.
Files changed (90) hide show
  1. package/Gruntfile.js +68 -313
  2. package/README.md +26 -14
  3. package/dist/css/materialize.css +1009 -1822
  4. package/dist/css/materialize.min.css +2 -8
  5. package/dist/js/materialize.js +8414 -12299
  6. package/dist/js/materialize.min.js +8968 -2
  7. package/dist/js/materialize.min.js.map +1 -0
  8. package/package.json +13 -9
  9. package/sass/components/_badges.scss +12 -2
  10. package/sass/components/_buttons.scss +16 -11
  11. package/sass/components/_cards.scss +14 -9
  12. package/sass/components/_carousel.scss +5 -2
  13. package/sass/components/_chips.scss +3 -3
  14. package/sass/components/_collapsible.scss +22 -8
  15. package/sass/components/_collection.scss +14 -6
  16. package/sass/components/_datepicker.scss +30 -11
  17. package/sass/components/_dropdown.scss +6 -4
  18. package/sass/components/_global.scss +132 -111
  19. package/sass/components/_grid.scss +119 -98
  20. package/sass/components/_modal.scss +3 -3
  21. package/sass/components/_navbar.scss +31 -17
  22. package/sass/components/_normalize.scss +26 -124
  23. package/sass/components/_sidenav.scss +21 -20
  24. package/sass/components/_slider.scss +27 -7
  25. package/sass/components/_table_of_contents.scss +12 -12
  26. package/sass/components/_tabs.scss +47 -16
  27. package/sass/components/_tapTarget.scss +6 -6
  28. package/sass/components/_theme_variables.scss +98 -0
  29. package/sass/components/_timepicker.scss +54 -46
  30. package/sass/components/_toast.scss +3 -3
  31. package/sass/components/_tooltip.scss +4 -5
  32. package/sass/components/_typography.scss +1 -1
  33. package/sass/components/_variables.scss +185 -120
  34. package/sass/components/forms/_checkboxes.scss +9 -9
  35. package/sass/components/forms/_file-input.scss +9 -7
  36. package/sass/components/forms/_input-fields.scss +173 -234
  37. package/sass/components/forms/_radio-buttons.scss +1 -1
  38. package/sass/components/forms/_range.scss +11 -11
  39. package/sass/components/forms/_select.scss +29 -19
  40. package/sass/components/forms/_switches.scss +22 -18
  41. package/sass/materialize.scss +1 -1
  42. package/src/autocomplete.ts +459 -0
  43. package/src/bounding.ts +6 -0
  44. package/{js/buttons.js → src/buttons.ts} +103 -162
  45. package/src/cards.ts +54 -0
  46. package/{js/carousel.js → src/carousel.ts} +137 -262
  47. package/src/characterCounter.ts +88 -0
  48. package/src/chips.ts +350 -0
  49. package/src/collapsible.ts +184 -0
  50. package/{js/component.js → src/component.ts} +6 -19
  51. package/{js/datepicker.js → src/datepicker.ts} +213 -299
  52. package/{js/dropdown.js → src/dropdown.ts} +140 -254
  53. package/src/edges.ts +6 -0
  54. package/src/forms.ts +120 -0
  55. package/src/global.ts +385 -0
  56. package/src/materialbox.ts +348 -0
  57. package/src/modal.ts +256 -0
  58. package/{js/parallax.js → src/parallax.ts} +47 -60
  59. package/{js/pushpin.js → src/pushpin.ts} +19 -47
  60. package/{js/range.js → src/range.ts} +58 -139
  61. package/{js/scrollspy.js → src/scrollspy.ts} +81 -153
  62. package/src/select.ts +448 -0
  63. package/{js/sidenav.js → src/sidenav.ts} +96 -202
  64. package/src/slider.ts +415 -0
  65. package/src/tabs.ts +293 -0
  66. package/src/tapTarget.ts +240 -0
  67. package/{js/timepicker.js → src/timepicker.ts} +268 -272
  68. package/{js/toasts.js → src/toasts.ts} +75 -134
  69. package/{js/tooltip.js → src/tooltip.ts} +59 -96
  70. package/src/waves.ts +70 -0
  71. package/extras/noUiSlider/nouislider.css +0 -404
  72. package/extras/noUiSlider/nouislider.js +0 -2147
  73. package/extras/noUiSlider/nouislider.min.js +0 -1
  74. package/js/anime.min.js +0 -34
  75. package/js/autocomplete.js +0 -479
  76. package/js/cards.js +0 -40
  77. package/js/cash.js +0 -960
  78. package/js/characterCounter.js +0 -136
  79. package/js/chips.js +0 -486
  80. package/js/collapsible.js +0 -275
  81. package/js/forms.js +0 -285
  82. package/js/global.js +0 -428
  83. package/js/materialbox.js +0 -453
  84. package/js/modal.js +0 -382
  85. package/js/select.js +0 -391
  86. package/js/slider.js +0 -497
  87. package/js/tabs.js +0 -402
  88. package/js/tapTarget.js +0 -315
  89. package/js/waves.js +0 -615
  90. package/sass/components/_waves.scss +0 -187
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Builds Materialize distribution packages",
4
4
  "author": "Alvin Wang, Alan Chang",
5
5
  "homepage": "https://materializecss.github.io/materialize/",
6
- "version": "1.2.2",
6
+ "version": "2.0.1-alpha",
7
7
  "main": "dist/js/materialize.js",
8
8
  "style": "dist/css/materialize.css",
9
9
  "sass": "sass/materialize.scss",
@@ -19,6 +19,7 @@
19
19
  "dev": "grunt monitor",
20
20
  "test": "grunt test",
21
21
  "release": "grunt release",
22
+ "watch": "webpack --watch",
22
23
  "precommit": "lint-staged",
23
24
  "docs": "grunt docs",
24
25
  "commit": "npx cz",
@@ -42,39 +43,39 @@
42
43
  "commitlint": "^17.0.3",
43
44
  "cz-conventional-changelog": "^3.3.0",
44
45
  "grunt": "^1.0.1",
45
- "grunt-babel": "^6.0.0",
46
46
  "grunt-banner": "^0.6.0",
47
47
  "grunt-browser-sync": "^2.2.0",
48
48
  "grunt-concurrent": "^3.0.0",
49
- "grunt-contrib-clean": "^1.1.0",
50
49
  "grunt-contrib-compress": "^1.4.1",
51
- "grunt-contrib-concat": "^1.0.1",
52
50
  "grunt-contrib-connect": "^3.0.0",
53
51
  "grunt-contrib-copy": "^1.0.0",
54
52
  "grunt-contrib-jasmine": "^3.0.0",
55
53
  "grunt-contrib-pug": "^3.0.0",
56
- "grunt-contrib-uglify": "^3.0.1",
57
54
  "grunt-contrib-watch": "^1.0.0",
58
- "grunt-notify": "^0.4.5",
59
55
  "grunt-postcss": "^0.9.0",
60
56
  "grunt-remove-logging": "^0.2.0",
61
57
  "grunt-rename-util": "^1.0.0",
62
58
  "grunt-sass": "^3.1.0",
63
59
  "grunt-text-replace": "^0.4.0",
60
+ "grunt-webpack": "^5.0.0",
64
61
  "husky": "^8.0.1",
65
62
  "jasmine": "^3.8.0",
66
- "jquery": "^3.2.1",
63
+ "jstransformer-markdown-it": "^3.0.0",
67
64
  "lint-staged": "^7.0.5",
68
65
  "node-archiver": "^0.3.0",
69
66
  "phantomjs-prebuilt": "^2.1.14",
70
67
  "pinst": "^3.0.0",
71
68
  "prettier": "^1.12.1",
72
- "sass": "^1.35.2"
69
+ "sass": "^1.35.2",
70
+ "ts-loader": "^9.4.2",
71
+ "typescript": "^4.9.5",
72
+ "webpack": "^5.75.0",
73
+ "webpack-cli": "^5.0.1"
73
74
  },
74
75
  "files": [
75
76
  "dist",
76
77
  "extras",
77
- "js/**/*.js",
78
+ "src/**/*.ts",
78
79
  "sass/**/*.scss",
79
80
  "Gruntfile.js",
80
81
  "LICENSE"
@@ -83,5 +84,8 @@
83
84
  "commitizen": {
84
85
  "path": "./node_modules/cz-conventional-changelog"
85
86
  }
87
+ },
88
+ "dependencies": {
89
+ "animejs": "^3.2.1"
86
90
  }
87
91
  }
@@ -7,14 +7,14 @@ span.badge {
7
7
  font-size: 1rem;
8
8
  line-height: $badge-height;
9
9
  height: $badge-height;
10
- color: color('grey', 'darken-1');
10
+ color: $badge-color;
11
11
  float: right;
12
12
  box-sizing: border-box;
13
13
 
14
14
  &.new {
15
15
  font-weight: 300;
16
16
  font-size: 0.8rem;
17
- color: #fff;
17
+ color: $badge-color-new;
18
18
  background-color: $badge-bg-color;
19
19
  border-radius: 2px;
20
20
  }
@@ -27,6 +27,10 @@ span.badge {
27
27
  }
28
28
  }
29
29
 
30
+ .active span.badge {
31
+ color: $badge-color-active;
32
+ }
33
+
30
34
  // Special cases
31
35
  nav ul a span.badge {
32
36
  display: inline-block;
@@ -41,9 +45,15 @@ nav ul a span.badge {
41
45
  .collection-item span.badge {
42
46
  margin-top: calc(#{$collection-line-height * 0.5} - #{$badge-height * 0.5});
43
47
  }
48
+
44
49
  .collapsible span.badge {
45
50
  margin-left: auto;
46
51
  }
52
+
53
+ .collapsible .active span.badge:not(.new) {
54
+ color: $badge-color;
55
+ }
56
+
47
57
  .sidenav span.badge {
48
58
  margin-top: calc(#{$sidenav-line-height * 0.5} - #{$badge-height * 0.5});
49
59
  }
@@ -1,14 +1,15 @@
1
1
  // shared styles
2
2
  .btn,
3
3
  .btn-flat {
4
+ font-weight: 500;
4
5
  border: $button-border;
5
6
  border-radius: $button-radius;
6
7
  display: inline-block;
7
8
  height: $button-height;
8
9
  line-height: $button-height;
9
10
  padding: $button-padding;
10
- text-transform: uppercase;
11
11
  vertical-align: middle;
12
+ user-select: none;
12
13
  -webkit-tap-highlight-color: transparent; // Gets rid of tap active state
13
14
  }
14
15
 
@@ -53,14 +54,6 @@
53
54
  }
54
55
  }
55
56
 
56
- // Shared focus button style
57
- .btn,
58
- .btn-floating {
59
- &:focus {
60
- background-color: darken($button-raised-background, 10%);
61
- }
62
- }
63
-
64
57
  // Raised Button
65
58
  .btn {
66
59
  text-decoration: none;
@@ -75,6 +68,10 @@
75
68
  background-color: $button-raised-background-hover;
76
69
  @extend .z-depth-1-half;
77
70
  }
71
+ &:focus {
72
+ background-color: $button-raised-background-focus;
73
+ @extend .z-depth-1-half;
74
+ }
78
75
  }
79
76
 
80
77
  // Floating button
@@ -83,6 +80,10 @@
83
80
  background-color: $button-floating-background-hover;
84
81
  @extend .z-depth-1-half;
85
82
  }
83
+ &:focus {
84
+ background-color: $button-floating-background-focus;
85
+ @extend .z-depth-1-half;
86
+ }
86
87
  &:before {
87
88
  border-radius: 0;
88
89
  }
@@ -153,6 +154,8 @@ button.btn-floating {
153
154
  &.active {
154
155
  ul {
155
156
  visibility: visible;
157
+ padding-left: 0;
158
+ list-style-type: none;
156
159
  }
157
160
  }
158
161
 
@@ -226,9 +229,10 @@ button.btn-floating {
226
229
  height: 100%;
227
230
  background-color: transparent;
228
231
  box-shadow: none;
229
- color: #fff;
232
+ color: $button-floating-color;
230
233
  line-height: $button-floating-large-size;
231
234
  z-index: 1;
235
+
232
236
  i {
233
237
  line-height: inherit;
234
238
  }
@@ -280,9 +284,10 @@ button.btn-floating {
280
284
  &:focus,
281
285
  &:hover {
282
286
  box-shadow: none;
287
+ background-color: $button-flat-hover-background-color;
283
288
  }
284
289
  &:focus {
285
- background-color: rgba(0, 0, 0, .1);
290
+ background-color: $button-flat-focus-background-color;
286
291
  }
287
292
  &.disabled,
288
293
  &.btn-flat[disabled] {
@@ -4,17 +4,17 @@
4
4
  transition: box-shadow .25s;
5
5
  padding: $card-padding;
6
6
  margin: $element-top-margin 0 $element-bottom-margin 0;
7
- border-radius: 2px;
7
+ border-radius: 12px;
8
8
  @extend .z-depth-1;
9
9
  background-color: $card-bg-color;
10
10
  }
11
11
 
12
12
  .card {
13
13
  position: relative;
14
- margin: $element-top-margin 0 $element-bottom-margin 0;
14
+ //margin: $element-top-margin 0 $element-bottom-margin 0;
15
15
  background-color: $card-bg-color;
16
16
  transition: box-shadow .25s;
17
- border-radius: 2px;
17
+ border-radius: 12px;
18
18
  @extend .z-depth-1;
19
19
 
20
20
 
@@ -160,18 +160,23 @@
160
160
  &:last-child {
161
161
  border-radius: 0 0 2px 2px;
162
162
  }
163
- background-color: inherit; // Use inherit to inherit color classes
164
- border-top: 1px solid rgba(160,160,160,.2);
163
+
164
+ border-top: 1px solid $divider-color;
165
165
  position: relative;
166
- padding: 16px $card-padding;
166
+ background-color: inherit;
167
+
168
+ a {
169
+ padding: 16px $card-padding;
170
+ display: inline-block;
171
+ }
167
172
 
168
173
  a:not(.btn):not(.btn-large):not(.btn-floating) {
169
174
  color: $card-link-color;
170
- margin-right: $card-padding;
171
175
  transition: color .3s ease;
172
- text-transform: uppercase;
173
176
 
174
- &:hover { color: $card-link-color-light; }
177
+ &:hover {
178
+ background-color: $primary-color-hover-opaque;
179
+ }
175
180
  }
176
181
  }
177
182
 
@@ -57,6 +57,9 @@
57
57
  }
58
58
 
59
59
  .indicators {
60
+ padding-left: 0;
61
+ list-style-type: none;
62
+
60
63
  position: absolute;
61
64
  text-align: center;
62
65
  left: 0;
@@ -66,7 +69,7 @@
66
69
 
67
70
  .indicator-item {
68
71
  &.active {
69
- background-color: #fff;
72
+ background-color: $carousel-indicator-color-active;
70
73
  }
71
74
 
72
75
  display: inline-block;
@@ -75,7 +78,7 @@
75
78
  height: 8px;
76
79
  width: 8px;
77
80
  margin: 24px 4px;
78
- background-color: rgba(255,255,255,.5);
81
+ background-color: $carousel-indicator-color;
79
82
 
80
83
  transition: background-color .3s;
81
84
  border-radius: 50%;
@@ -2,14 +2,14 @@
2
2
  &:focus {
3
3
  outline: none;
4
4
  background-color: $chip-selected-color;
5
- color: #fff;
5
+ color: $chip-selected-font-color;
6
6
  }
7
7
 
8
8
  display: inline-block;
9
9
  height: 32px;
10
10
  font-size: 13px;
11
11
  font-weight: 500;
12
- color: rgba(0,0,0,.6);
12
+ color: $chip-font-color;
13
13
  line-height: 32px;
14
14
  padding: 0 12px;
15
15
  border-radius: 16px;
@@ -55,7 +55,7 @@
55
55
  input:not([type]):not(.browser-default).input {
56
56
  background: none;
57
57
  border: 0;
58
- color: rgba(0,0,0,.6);
58
+ color: $input-color;
59
59
  display: inline-block;
60
60
  font-size: $input-font-size;
61
61
  height: $input-height;
@@ -1,4 +1,7 @@
1
1
  .collapsible {
2
+ padding-left: 0;
3
+ list-style-type: none;
4
+
2
5
  border-top: 1px solid $collapsible-border-color;
3
6
  border-right: 1px solid $collapsible-border-color;
4
7
  border-left: 1px solid $collapsible-border-color;
@@ -16,8 +19,8 @@
16
19
  -webkit-tap-highlight-color: transparent;
17
20
  line-height: 1.5;
18
21
  padding: 1rem;
19
- background-color: $collapsible-header-color;
20
22
  border-bottom: 1px solid $collapsible-border-color;
23
+ background-color: $collapsible-bg-color;
21
24
 
22
25
  i {
23
26
  width: 2rem;
@@ -27,8 +30,9 @@
27
30
  margin-right: 1rem;
28
31
  }
29
32
  }
33
+
30
34
  .keyboard-focused .collapsible-header:focus {
31
- background-color: #eee;
35
+ background-color: $surface-focus-color-opaque;
32
36
  }
33
37
 
34
38
  .collapsible-body {
@@ -36,6 +40,7 @@
36
40
  border-bottom: 1px solid $collapsible-border-color;
37
41
  box-sizing: border-box;
38
42
  padding: 2rem;
43
+ background-color: $collapsible-bg-color;
39
44
  }
40
45
 
41
46
  // Sidenav collapsible styling
@@ -46,7 +51,14 @@
46
51
  border: none;
47
52
  box-shadow: none;
48
53
 
49
- li { padding: 0; }
54
+ li {
55
+ padding: 0;
56
+ }
57
+ }
58
+
59
+ > li:hover,
60
+ > li.active {
61
+ background-color: transparent;
50
62
  }
51
63
 
52
64
  .collapsible-header {
@@ -56,17 +68,17 @@
56
68
  height: inherit;
57
69
  padding: 0 $sidenav-padding;
58
70
 
59
- &:hover { background-color: rgba(0,0,0,.05); }
60
- i { line-height: inherit; }
71
+ i {
72
+ line-height: inherit;
73
+ }
61
74
  }
62
75
 
63
76
  .collapsible-body {
64
77
  border: 0;
65
- background-color: $collapsible-header-color;
78
+ background-color: $collapsible-bg-color;
66
79
 
67
80
  li a {
68
- padding: 0 (7.5px + $sidenav-padding)
69
- 0 (15px + $sidenav-padding);
81
+ padding: 0 (7.5px + $sidenav-padding) 0 (15px + $sidenav-padding);
70
82
  }
71
83
  }
72
84
 
@@ -77,12 +89,14 @@
77
89
  .collapsible.popout {
78
90
  border: none;
79
91
  box-shadow: none;
92
+
80
93
  > li {
81
94
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
82
95
  // transform: scaleX(.92);
83
96
  margin: 0 24px;
84
97
  transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
85
98
  }
99
+
86
100
  > li.active {
87
101
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
88
102
  margin: 16px 0;
@@ -1,6 +1,7 @@
1
-
2
1
  // Collections
3
2
  .collection {
3
+ padding-left: 0;
4
+ list-style-type: none;
4
5
  margin: $element-top-margin 0 $element-bottom-margin 0;
5
6
  border: 1px solid $collection-border-color;
6
7
  border-radius: $collection-border-radius;
@@ -31,11 +32,12 @@
31
32
  display: inline-block;
32
33
  vertical-align: middle;
33
34
  }
35
+
34
36
  i.circle {
35
37
  font-size: 18px;
36
38
  line-height: 42px;
37
- color: #fff;
38
- background-color: #999;
39
+ color: $collection-avatar-circle-icon-color;
40
+ background-color: $collection-avatar-circle-bg-color;
39
41
  text-align: center;
40
42
  }
41
43
 
@@ -66,14 +68,16 @@
66
68
  color: $collection-active-color;
67
69
 
68
70
  .secondary-content {
69
- color: #fff;
71
+ color: $font-on-primary-color-main;
70
72
  }
71
73
  }
72
74
  }
73
- a.collection-item{
75
+
76
+ a.collection-item {
74
77
  display: block;
75
78
  transition: .25s;
76
79
  color: $collection-link-color;
80
+
77
81
  &:not(.active) {
78
82
  &:hover {
79
83
  background-color: $collection-hover-bg-color;
@@ -87,20 +91,24 @@
87
91
  border-bottom: 1px solid $collection-border-color;
88
92
  padding: 10px 20px;
89
93
  }
94
+
90
95
  .collection-item {
91
96
  padding-left: 30px;
92
97
  }
98
+
93
99
  .collection-item.avatar {
94
100
  padding-left: 72px;
95
101
  }
96
102
  }
97
103
 
98
104
  }
105
+
99
106
  // Made less specific to allow easier overriding
100
107
  .secondary-content {
101
108
  float: right;
102
- color: $secondary-color;
109
+ color: $primary-color;
103
110
  }
111
+
104
112
  .collapsible .collection {
105
113
  margin: 0;
106
114
  border: none;
@@ -9,6 +9,7 @@
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  padding: 0;
12
+ background-color: $surface-color;
12
13
  }
13
14
 
14
15
  .datepicker-controls {
@@ -26,6 +27,7 @@
26
27
  &:focus {
27
28
  border-bottom: none;
28
29
  }
30
+
29
31
  border-bottom: none;
30
32
  text-align: center;
31
33
  margin: 0;
@@ -43,6 +45,17 @@
43
45
  .select-month input {
44
46
  width: 80px;
45
47
  }
48
+
49
+ .month-prev,
50
+ .month-next {
51
+ display: inline-flex;
52
+ align-items: center;
53
+ }
54
+
55
+ .month-prev > svg,
56
+ .month-next > svg {
57
+ fill: $button-flat-color;
58
+ }
46
59
  }
47
60
 
48
61
  .month-prev, .month-next {
@@ -56,8 +69,8 @@
56
69
  /* Date Display */
57
70
  .datepicker-date-display {
58
71
  flex: 1 auto;
59
- background-color: $secondary-color;
60
- color: #fff;
72
+ background-color: $primary-color;
73
+ color: $font-on-primary-color-main;
61
74
  padding: 20px 22px;
62
75
  font-weight: 500;
63
76
 
@@ -106,18 +119,20 @@
106
119
  }
107
120
 
108
121
  td {
122
+ color: $datepicker-day-font-color;
123
+
109
124
  &.is-today {
110
- color: $secondary-color;
125
+ color: $primary-color;
111
126
  }
112
127
 
113
128
  &.is-selected {
114
- background-color: $secondary-color;
115
- color: #fff;
129
+ background-color: $primary-color;
130
+ color: $font-on-primary-color-main;
116
131
  }
117
132
 
118
133
  &.is-outside-current-month,
119
134
  &.is-disabled {
120
- color: $datepicker-disabled-day-color;
135
+ color: $datepicker-day-font-color-disabled;
121
136
  pointer-events: none;
122
137
  }
123
138
 
@@ -127,10 +142,6 @@
127
142
  }
128
143
 
129
144
  .datepicker-day-button {
130
- &:focus {
131
- background-color: $datepicker-day-focus;
132
- }
133
-
134
145
  background-color: transparent;
135
146
  border: none;
136
147
  line-height: 38px;
@@ -140,6 +151,14 @@
140
151
  padding: 0 5px;
141
152
  cursor: pointer;
142
153
  color: inherit;
154
+
155
+ &:hover {
156
+ background-color: $datepicker-day-hover;
157
+ }
158
+
159
+ &:focus {
160
+ background-color: $datepicker-day-focus;
161
+ }
143
162
  }
144
163
 
145
164
 
@@ -156,7 +175,7 @@
156
175
  .datepicker-clear,
157
176
  .datepicker-today,
158
177
  .datepicker-done {
159
- color: $secondary-color;
178
+ color: $primary-color;
160
179
  padding: 0 1rem;
161
180
  }
162
181
 
@@ -1,9 +1,11 @@
1
1
  .dropdown-content {
2
+ padding-left: 0;
3
+ list-style-type: none;
4
+
2
5
  &:focus {
3
6
  outline: 0;
4
7
  }
5
8
 
6
-
7
9
  @extend .z-depth-1;
8
10
  background-color: $dropdown-bg-color;
9
11
  margin: 0;
@@ -57,7 +59,7 @@
57
59
 
58
60
 
59
61
  clear: both;
60
- color: $off-black;
62
+ color: $text-color;
61
63
  cursor: pointer;
62
64
  min-height: $dropdown-item-height;
63
65
  line-height: 1.5rem;
@@ -68,7 +70,7 @@
68
70
 
69
71
  body.keyboard-focused {
70
72
  .dropdown-content li:focus {
71
- background-color: darken($dropdown-hover-bg-color, 8%);
73
+ background-color: $dropdown-focus-bg-color;
72
74
  }
73
75
  }
74
76
 
@@ -82,4 +84,4 @@ body.keyboard-focused {
82
84
 
83
85
  .dropdown-trigger {
84
86
  cursor: pointer;
85
- }
87
+ }