Skip to content

Commit

Permalink
fix imports and style underlay
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgm committed Dec 7, 2022
1 parent 569fe61 commit fe40845
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/Overlay/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Overlay = ({ children, container, open }: OverlayProps) => {

return (
<ReactAriaOverlay portalContainer={container}>
<Transition nodeRef={nodeRef} timeout={{ enter: 0, exit: 350 }} in={open}>
<Transition nodeRef={nodeRef} timeout={{ enter: 0, exit: 550 }} in={open}>
{state => (
<div
ref={nodeRef}
Expand Down
2 changes: 0 additions & 2 deletions packages/components/src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ export const Select = forwardRef<HTMLButtonElement, SelectProps>(
const buttonRef = useObjectRef(ref);
const listboxRef = useRef(null);

// why does it have so many refs? in spectrum

const {
labelProps,
triggerProps,
Expand Down
9 changes: 6 additions & 3 deletions themes/theme-core/src/components/Underlay.style.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { Theme } from '@marigold/components';

export const Underlay: Theme['components']['Underlay'] = {
base: {
bg: 'gray70',
opacity: 0.33,
base: {},
variant: {
modal: {
bg: 'gray70',
opacity: 0.33,
},
},
};
9 changes: 6 additions & 3 deletions themes/theme-unicorn/src/components/Underlay.style.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { Theme } from '@marigold/components';

export const Underlay: Theme['components']['Underlay'] = {
base: {
bg: 'rgba(206, 212, 218, 0.5)',
backdropFilter: 'blur(1px)',
base: {},
variant: {
modal: {
bg: 'rgba(206, 212, 218, 0.5)',
backdropFilter: 'blur(1px)',
},
},
};

0 comments on commit fe40845

Please sign in to comment.