Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix hidden decoration for Mesh product card on hover, when there is both <ExploreMainProductCards /> and <ToolsAndLibrariesCards /> on page #1951

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

dimaMachina
Copy link
Collaborator

@dimaMachina dimaMachina commented Jan 6, 2025

STORYBOOK

alternative approach of #1950 to fix svg id conflicts when both <ExploreMainProductCards /> and <ToolsAndLibrariesCards /> components are on page due [&>:nth-child(n+4)]:[@media(min-width:1490px)]:hidden class

  1. keeps all decorations as svg
  2. remove 90% of SVG code
  3. decorations gradient maybe little bit different from figma, but code is much simpler than before
  4. stroke is more visible for all decoration, e.g for graph-hive.com hive's stroke is not very visible
image

Storybook

Screen.Recording.2025-01-07.at.03.16.39.mov

Example of both components in same page

Screen.Recording.2025-01-07.at.03.21.26.mov

Copy link

changeset-bot bot commented Jan 6, 2025

🦋 Changeset detected

Latest commit: 02779ea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@theguild/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 6, 2025

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@theguild/components 8.2.1-alpha-20250106192249-02779ea15ddd8ad8a7a53cb5a512da7577559d74 npm ↗︎ unpkg ↗︎

Copy link
Contributor

github-actions bot commented Jan 6, 2025

📚 Storybook Deployment

The latest changes are available as preview in: https://6a94cf24.the-guild-docs-storybook.pages.dev

Comment on lines -43 to -44
'pointer-events-none absolute bottom-0 right-0 h-full fill-blue-200 opacity-0 transition-opacity duration-500 group-focus-within:opacity-100 group-hover:opacity-100',
isHive && 'fill-blue-700',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think fill-blue-200 and fill-blue-700 were used before

)}
preserveAspectRatio="xMidYMid meet"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this? I didn't see any change

Copy link
Collaborator

@hasparus hasparus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hasparus hasparus changed the base branch from main to v7 January 8, 2025 10:30
@hasparus hasparus changed the base branch from v7 to main January 8, 2025 10:31
@hasparus hasparus merged commit 15972ea into main Jan 8, 2025
5 checks passed
@hasparus hasparus deleted the fix-four-main-products branch January 8, 2025 10:31
hasparus pushed a commit that referenced this pull request Jan 8, 2025
…oth `<ExploreMainProductCards />` and `<ToolsAndLibrariesCards />` on page (#1951)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants