@latte-macchiat-io/latte-vanilla-components 0.0.409 → 0.0.411

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": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.409",
3
+ "version": "0.0.411",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,6 +1,6 @@
1
1
  import { useMemo } from 'react';
2
2
 
3
- import { errorMessage, messageContainer, selectRecipe, selectWrapper, selectWrapperSelect } from './styles.css';
3
+ import { errorMessage, messageContainer, selectLabel, selectRecipe, selectWrapper, selectWrapperSelect } from './styles.css';
4
4
 
5
5
  import { cn } from '../../../utils/styleOverride';
6
6
 
@@ -22,7 +22,11 @@ export const Select = ({ options, className, errors, label, name, required, onCh
22
22
 
23
23
  return (
24
24
  <div className={cn(selectRecipe(), className)}>
25
- {label && <label htmlFor={name}>{label}</label>}
25
+ {label && (
26
+ <label htmlFor={name} className={selectLabel}>
27
+ {label}
28
+ </label>
29
+ )}
26
30
 
27
31
  <div className={selectWrapper}>
28
32
  <select id={name} name={name} required={required} onChange={onChange} className={selectWrapperSelect}>
@@ -26,6 +26,10 @@ export const selectWrapper = style({
26
26
  backgroundColor: themeContract.form.textField.backgroundColor,
27
27
  });
28
28
 
29
+ export const selectLabel = style({
30
+ zIndex: 5,
31
+ });
32
+
29
33
  export const selectWrapperSelect = style({
30
34
  border: 0,
31
35
  width: '100%',
@@ -45,11 +45,9 @@ export const Header = ({ children, childrenOverlay, childrenToggleNav, isFixed =
45
45
  return (
46
46
  <>
47
47
  <header className={cn(headerRecipe({ isFixed }), className)}>
48
- {childrenOverlay && <div className={headerOverlayRecipe({ isOpen: isNavOpen })}>{childrenOverlay}</div>}
49
-
50
48
  {children}
51
-
52
49
  {toggleNavVisibility !== 'hide' && renderToggleNav()}
50
+ {childrenOverlay && <div className={headerOverlayRecipe({ isOpen: isNavOpen })}>{childrenOverlay}</div>}
53
51
  </header>
54
52
 
55
53
  {isFixed && <div className={headerPlaceholder} />}