willba-component-library 0.1.39 → 0.1.40

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.1.39",
3
+ "version": "0.1.40",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -69,10 +69,5 @@
69
69
  padding: 30px 20px;
70
70
  position: relative;
71
71
  }
72
-
73
- .will-root.isMobileAbsolute {
74
- position: relative;
75
- z-index: 99999;
76
- }
77
72
  }
78
73
 
@@ -80,10 +80,7 @@ export default function FilterBar({
80
80
  const parsedGuests = parseGuests({ ageCategoryCounts, ageCategories })
81
81
 
82
82
  return (
83
- <div
84
- className={`will-root ${selectedFilter ? 'isMobileAbsolute' : ''}`}
85
- style={themePalette}
86
- >
83
+ <div className={`will-root`} style={themePalette}>
87
84
  {!currentViewApply && (
88
85
  <div
89
86
  className="will-filter-bar-tabs"
@@ -5,7 +5,7 @@ type Props = {
5
5
  }
6
6
 
7
7
  export const useCloseFilterSection = ({ handleSelectedFilter }: Props) => {
8
- const filtersRef = useRef<HTMLDivElement>(null)
8
+ const filtersRef = useRef<HTMLDivElement | null>(null)
9
9
 
10
10
  useEffect(() => {
11
11
  const handleClickOutside = (event: MouseEvent) => {