Skip to content

Commit

Permalink
fix: position tip shapes for bi-directional delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Jan 28, 2021
1 parent fcd6ea2 commit 35654de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/popover/src/popover.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ governing permissions and limitations under the License.
width: var(--sp-popover-tip-size);
height: calc(var(--sp-popover-tip-size) / 2);
position: absolute;
left: 0;
}

/* override #tip orientation so we can orient on .tip instead */
Expand Down
2 changes: 2 additions & 0 deletions packages/tooltip/src/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ governing permissions and limitations under the License.
#tip:after {
content: '';
position: absolute;
left: 0;
width: 0;
height: 0;
border: solid
Expand Down Expand Up @@ -56,6 +57,7 @@ governing permissions and limitations under the License.

:host([placement*='right']) #tip:after {
right: 100%;
left: auto;
transform: rotate(90deg);
}

Expand Down

0 comments on commit 35654de

Please # to comment.