Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(positioning): use popper 2 for positioning (#4129)
BREAKING CHANGES: ng-bootstrap now has a dependency on `@popper/core`. All positioning logic for datepicker, dropdown, popover, tooltip and typeahead is outsourced to popper.js
- Loading branch information
1 parent
9598506
commit 5842eb5
Showing
19 changed files
with
811 additions
and
1,075 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
/* You can add global styles to this file, and also import other style files */ | ||
|
||
// Temporary fix, as this classes are required for the positioning | ||
// They existed in bs4, and we must remove them after popper implementation | ||
.dropdown-menu { | ||
&[x-placement^="top"], | ||
&[x-placement^="end"], | ||
&[x-placement^="bottom"], | ||
&[x-placement^="start"] { | ||
right: auto; | ||
bottom: auto; | ||
} | ||
} |
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.