willba-component-library 0.2.89 → 0.2.90

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.2.89",
3
+ "version": "0.2.90",
4
4
  "description": "A custom UI component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -75,7 +75,7 @@
75
75
  .will-filter-bar-container {
76
76
  margin-top: 10px;
77
77
  top:0;
78
- padding: 30px 20px;
78
+ padding: 45px 20px;
79
79
  position: relative;
80
80
  }
81
81
  }
@@ -23,14 +23,13 @@
23
23
  }
24
24
 
25
25
  .will-filter-bar-select-button .select-button-label {
26
- -webkit-appearance: none;
27
- appearance: none;
26
+ color: var(--will-black);
28
27
  font-weight: 600;
29
28
  }
30
29
 
31
30
  .will-filter-bar-select-button .select-button-description {
32
- -webkit-appearance: none;
33
- appearance: none;
31
+
32
+ color: var(--will-black);
34
33
  font-weight: 400;
35
34
  opacity: 0.5;
36
35
  white-space: nowrap;
@@ -31,6 +31,7 @@
31
31
  .will-guests-filter-counter-button {
32
32
  -webkit-appearance: none;
33
33
  appearance: none;
34
+ outline: none;
34
35
  border-radius: 50%;
35
36
  background-color: transparent;
36
37
  border: 1px solid var(--will-grey);
@@ -42,6 +43,12 @@
42
43
  font-size: 20px;
43
44
  cursor: pointer;
44
45
  color: var(--will-black);
46
+ position: relative;
47
+ }
48
+
49
+ .will-guests-filter-counter-button .counter-button-icon {
50
+ position: absolute;
51
+ top: 0;
45
52
  }
46
53
 
47
54
  .will-guests-filter-counter-button:hover {
@@ -44,14 +44,14 @@ export default function GuestCount({
44
44
  opacity: (minVal && count <= minVal) || !count ? 0.4 : 1,
45
45
  }}
46
46
  >
47
- -
47
+ <span className="counter-button-icon">-</span>
48
48
  </button>
49
49
  <span className="will-guests-filter-count">{count}</span>
50
50
  <button
51
51
  className="will-guests-filter-counter-button"
52
52
  onClick={handleIncrement}
53
53
  >
54
- +
54
+ <span className="counter-button-icon">+</span>
55
55
  </button>
56
56
  </div>
57
57
  </div>
@@ -56,18 +56,6 @@ export const useFilterBar = ({
56
56
  setCategories(parsedCategories)
57
57
  }, [])
58
58
 
59
- useEffect(() => {
60
- // Handle hide scroll bar on mobile
61
- if (typeof window === 'undefined') return
62
-
63
- document.body.style.overflow =
64
- selectedFilter && window.innerWidth < 960 ? 'hidden' : 'visible'
65
-
66
- return () => {
67
- document.body.style.overflow = 'visible'
68
- }
69
- }, [selectedFilter])
70
-
71
59
  useEffect(() => {
72
60
  if (typeof window === 'undefined') return
73
61