-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add 'Popover' component #383
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6e350f8
Added `Fixes #` into the PR template
agisilaos 9e13c39
Make a checklist out of the 3 sentences
agisilaos 478f764
Added a space between the # and the (
agisilaos 5dbec5c
Merge pull request #374 from agisilaos/agis/prtemplate
jonrohan 23e4fbc
Merge branch 'master' into dev
jonrohan ea3ed60
Init .Popover
brandonrosage 17d1a9f
Stable CSS-only 'Popover' component
brandonrosage 4500309
Refactored to include `.Popover-message`
brandonrosage a7a8a4f
STorybook menu naming revision
brandonrosage 760ceb1
Tweak caret alignment to overlap border.
brandonrosage 13bf797
make Popover positioning more flexible
brandonrosage d23ce98
Support for top, right, left, bottom caret orientations
brandonrosage 529fdb6
build error fix
brandonrosage 4c6e9f0
Addresses @broccolini's feedback
brandonrosage dc3ab87
Tweak caret alignment
brandonrosage d4e6313
Reconciling documentation differences from Style Guide
brandonrosage 6ae4002
Addresses @broccolini's feedback
brandonrosage ee50150
add peer dependency for Box component
broccolini dac9464
add toc
broccolini 15d89f3
missed a couple of spacers
broccolini 06feed4
Merge branch 'release-10.0.0' into popover
broccolini f7a9309
missed a comma
broccolini 4938e89
update year on license
broccolini 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
make Popover positioning more flexible
- Loading branch information
commit 13bf79720f05bca05b0e8920e8befc1f09bbb6b1
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,11 @@ | ||
| .Popover { | ||
| position: absolute; | ||
| right: 0; | ||
| left: 0; | ||
| z-index: 100; | ||
| } | ||
|
|
||
| .Popover-message { | ||
| position: relative; | ||
| max-width: 235px; | ||
| width: 235px; | ||
| margin-right: auto; | ||
| margin-left: auto; | ||
|
|
||
|
|
@@ -70,5 +68,8 @@ | |
| } | ||
|
|
||
| .Popover-message--lg { | ||
|
||
| max-width: 330px; | ||
|
|
||
| @include breakpoint(sm) { | ||
| min-width: 330px; | ||
| } | ||
| } | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to make this an even number, suggest making this
232pxor24px—something divisible by 8px because that's what our spacing scale is based on. I know you based this on the original custom code, let me know if you this would cause issues, if so, we can adjust in a follow-up relelase.