Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1teee committed Apr 4, 2023
2 parents 6e25182 + dc87b34 commit 78007d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions docs/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import cx from 'classnames'
import { forwardRef, useEffect, useRef, useState } from 'react'
import { AnchorHTMLAttributes, forwardRef, ReactNode, useEffect, useRef, useState } from 'react'
import { animated, config, useSpring } from 'react-spring'
import styles from './Hero.module.css'

const subtitle = 'Accessible, Delightful, and Performant'

const Link: React.FC<{
href?: string
target?: string
className?: string
}> = forwardRef(
({ children, className, ...props }, ref: React.Ref<HTMLAnchorElement>) => (
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
href: string;
children: ReactNode;
}

const Link = forwardRef<HTMLAnchorElement, LinkProps>(({ children, className, ...props }, ref) => (
<a
{...props}
className={cx(
Expand Down Expand Up @@ -41,7 +41,7 @@ const Links = ({ className }: { className?: string }) => (
</>
)
// The wrapping in <g> is because of Safari 🙄 https://bug-149617-attachments.webkit.org/attachment.cgi?id=262048
const SvgText: React.FC<{ x?: string; y?: string; className?: string }> = ({
const SvgText: React.FC<{ x?: string; y?: string; className?: string; children?: ReactNode }> = ({
children,
className,
x = '23',
Expand Down
1 change: 0 additions & 1 deletion docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@layer base {
:root {
--rsbs-backdrop-bg: rgba(15, 23, 42, 0.7);
--rsbs-z-index: 3;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
[data-rsbs-overlay],
[data-rsbs-backdrop],
[data-rsbs-root]:after {
z-index: var(--rsbs-z-index, 3);;
z-index: var(--rsbs-z-index);
overscroll-behavior: none;
touch-action: none;
position: fixed;
Expand Down

0 comments on commit 78007d4

Please sign in to comment.