Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/blue-singers-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@theguild/components": patch
---

Improve HiveNavigation submenu navigation (slower in, faster out).

9 changes: 9 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ module.exports = {
},
},
overrides: [
{
files: ['*.cjs'],
rules: {
'@typescript-eslint/consistent-type-imports': [
'warn',
// back to the default settings. we need type imports in .storybook/main.ts because it's stripped, not compiled
],
},
},
{
files: ['**/*.stories.{ts,tsx}'],
rules: {
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ on:
pull_request: {}

jobs:
dependencies:
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
secrets:
githubToken: ${{ secrets.GUILD_BOT_TOKEN }}
# Dotan commented this out on `main` 7 months ago in
# https://github.com/the-guild-org/docs/commit/d4d3f454587dcc09d6931cf3cd3df1c9c48ece76
# and we also don't need it on `v7`.
# dependencies:
# uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
# secrets:
# githubToken: ${{ secrets.GUILD_BOT_TOKEN }}

canary:
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ function HamburgerButton() {
<button
type="button"
aria-label="Menu"
className="md:_hidden hover nextra-hamburger -m-1 rounded-lg bg-transparent p-1 text-green-1000 focus-visible:outline-none focus-visible:ring active:bg-beige-200 dark:text-neutral-200 dark:active:bg-neutral-800"
className="hover nextra-hamburger -m-1 rounded-lg bg-transparent p-1 text-green-1000 focus-visible:outline-none focus-visible:ring active:bg-beige-200 md:hidden dark:text-neutral-200 dark:active:bg-neutral-800"
onClick={() => setMenu(!menu)}
>
<MenuIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ export const NavigationMenuContent = forwardRef<
<NavigationMenuPrimitive.Content
ref={ref}
className={cn(
'absolute left-0 top-0 w-auto bg-white data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 dark:bg-neutral-900 [&>:first-child]:p-6',
'absolute left-0 top-0 w-auto bg-white data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=to-]:![animation-duration:250ms] data-[motion^=from-]:![animation-duration:450ms] dark:bg-neutral-900 [&>:first-child]:p-6',
className,
)}
{...rest}
style={{
animationDuration: '0.4s',
...rest.style,
}}
/>
));
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading