-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(toast): hide static toast when dragging to prevent duplicates #5889
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
Closed
hassanzadeh-mj
wants to merge
6
commits into
heroui-inc:canary
from
hassanzadeh-mj:fix/toast-drag-opacity-issue-5883
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a88f98a
Merge pull request #5679 from heroui-inc/canary
jrgarciadev acd5f1d
Merge pull request #5772 from heroui-inc/canary
jrgarciadev 680b68b
chore(docs): update nav banner (#5835)
wingkwong 83b8fc1
chore: v3 beta release banner
jrgarciadev e059840
fix(toast): remove drag functionality to prevent opacity issues
hassanzadeh-mj d1a65d9
chore: trigger pull request rerun
hassanzadeh-mj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| "use client"; | ||
|
|
||
| import {Chip} from "@heroui/react"; | ||
| import {Icon} from "@iconify/react/dist/offline"; | ||
| import arrowRightUpIcon from "@iconify/icons-solar/arrow-right-up-linear"; | ||
|
|
||
| const releaseInfo = { | ||
| title: "HeroUI v3.0.0 (Beta)", | ||
| href: "https://v3.heroui.com?ref=heroui-v2", | ||
| emoji: "🔥", | ||
| }; | ||
|
|
||
| export function V3ReleaseBanner() { | ||
| return ( | ||
| <Chip | ||
| as="a" | ||
| classNames={{ | ||
| base: "relative transition-colors hover:bg-default-700/10 border-1 border-default-700/10 backdrop-blur-lg bg-transparent", | ||
| content: "relative flex items-center font-medium text-default-900 pr-[14px]", | ||
| }} | ||
| href={releaseInfo.href} | ||
| rel="noopener noreferrer" | ||
| target="_blank" | ||
| variant="flat" | ||
| > | ||
| <span className="mr-1 text-sm">{releaseInfo.emoji}</span> | ||
| <span | ||
| className="animate-text-gradient inline-flex bg-clip-text font-medium text-transparent bg-[linear-gradient(90deg,#0485f7_0%,#BA8BF6_50%,#0485f7_100%)] dark:bg-[linear-gradient(90deg,#0485f7_0%,#BA8BF6_50%,#0485f7_100%)]" | ||
| style={{ | ||
| fontSize: "inherit", | ||
| backgroundSize: "200%", | ||
| backgroundClip: "text", | ||
| WebkitBackgroundClip: "text", | ||
| color: "transparent", | ||
| }} | ||
| > | ||
| {releaseInfo.title} | ||
| </span> | ||
| <Icon | ||
| className="absolute right-[2px] top-1/2 -translate-y-1/2 text-default-500/60 outline-solid outline-transparent transition-transform group-data-[hover=true]:translate-y-0.5 [&>path]:stroke-[2.5px]" | ||
| icon={arrowRightUpIcon} | ||
| width={10} | ||
| /> | ||
| </Chip> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.