-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: open popout with anchor coordinates (#40)
* fix: types and api of tooltip provide and popout component * fix: auto fallback position and align * style: move inline style to file * feat: make popout openable with anchor cords instead of anchor element BREAKING CHANGE: popout children forward ref and open prop is now removed with anchor prop
- Loading branch information
Showing
7 changed files
with
536 additions
and
165 deletions.
There are no files selected for viewing
This file contains 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,19 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { config } from "../../theme"; | ||
|
||
export const PopOut = style({ | ||
position: "fixed", | ||
top: 0, | ||
right: 0, | ||
bottom: 0, | ||
left: 0, | ||
zIndex: config.zIndex.Max, | ||
...style, | ||
}); | ||
|
||
export const PopOutContainer = style({ | ||
display: "inline-block", | ||
position: "fixed", | ||
maxWidth: "100vw", | ||
maxHeight: "100vh", | ||
}); |
This file contains 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 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 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
Oops, something went wrong.