Skip to content

Commit

Permalink
Merge pull request #4230 from relative-ci/fix-ui
Browse files Browse the repository at this point in the history
fix ui
  • Loading branch information
vio authored Feb 8, 2024
2 parents 57b0690 + d0662d8 commit b889fd4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 69 deletions.
67 changes: 0 additions & 67 deletions packages/ui/src/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ code {
font-family: var(--font-family-fixed);
}

/** Orbit updates */
a {
color: var(--color-primary);
}
Expand All @@ -64,69 +63,3 @@ a:focus {
color: var(--color-primary-dark);
outline: none;
}

.ui-button--primary {
background: var(--color-primary);
}

.ui-button--primary:active,
.ui-button--primary:focus,
.ui-button--primary:hover {
background: var(--color-primary-dark);
}

.ui-button--secondary {
background: var(--color-secondary);
}

.ui-button--secondary:active,
.ui-button--secondary:focus,
.ui-button--secondary:hover {
background: var(--color-secondary-dark);
}

.ui-button--info {
background: var(--color-info);
}

.ui-button--info:active,
.ui-button--info:focus,
.ui-button--info:hover {
background: var(--color-info-dark);
}

.ui-button--success {
background: var(--color-success);
}

.ui-button--success:active,
.ui-button--success:focus,
.ui-button--success:hover {
background: var(--color-success-dark);
}


.ui-button--warning {
background: var(--color-warning);
}

.ui-button--warning:active,
.ui-button--warning:focus,
.ui-button--warning:hover {
background: var(--color-warning-dark);
}

.ui-button--danger {
background: var(--color-danger);
}

.ui-button--danger:active,
.ui-button--danger:focus,
.ui-button--danger:hover {
background: var(--color-danger-dark);
}

.__reakit-portal {
z-index: var(--layer-xhigh);
position: relative;
}
1 change: 1 addition & 0 deletions packages/ui/src/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
--layer: 100;
--layer-high: 1000;
--layer-xhigh: 10000;
--layer-xxhigh: 100000;

--shadow-layer: 0 0 var(--space-xxxsmall) var(--color-shadow);
--shadow-layer-high: 0 0 var(--space-xxsmall) var(--color-shadow);
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/ui/hover-card/hover-card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
}

.hoverCard {
z-index: var(--layer-xxhigh);
padding: var(--space-xsmall) var(--space-small);
border-radius: var(--radius-medium);
width: calc(100vw - 2 * var(--space-small));
Expand Down
3 changes: 1 addition & 2 deletions packages/ui/src/ui/hover-card/hover-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const HoverCard = (props: HoverCardProps) => {
children,
} = props;

const state = useHovercardState({ gutter: 8, timeout: 800 });
const state = useHovercardState({ gutter: 8, timeout: 300 });
const hovercardProps = useHovercard({ state, portal: true });

// Fallback to span if no href
Expand Down Expand Up @@ -62,7 +62,6 @@ export const HoverCard = (props: HoverCardProps) => {
{...hovercardProps}
state={state}
className={cx(css.hoverCard, hoverCardClassName)}
style={{ zIndex: 10000 }}
>
<HovercardArrow size={24} />
{typeof children === 'function' ? children({ close: state.hide }) : children}
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/ui/tooltip/tooltip.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
filter: drop-shadow(var(--shadow-layer));
will-change: filter;
font-size: var(--size-xsmall);
z-index: var(--layer-xxhigh);
}

.arrow svg {
Expand Down

0 comments on commit b889fd4

Please sign in to comment.