Skip to content

Commit

Permalink
fix(context-menu): updated context menu arrow left position calculati…
Browse files Browse the repository at this point in the history
…on (#1268)

Closes #973
  • Loading branch information
aefox authored and nnixaa committed Mar 5, 2019
1 parent e1a84f4 commit 0db8c2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@mixin nb-context-menu-theme() {
nb-context-menu {
$arrow-size: nb-theme(context-menu-arrow-size);
$arrow-content-size: calc(#{$arrow-size} - 2px);
$arrow-content-size: #{$arrow-size} - 2px;

border: 2px solid nb-theme(context-menu-border);
border-radius: nb-theme(context-menu-border-radius);
Expand All @@ -30,10 +30,10 @@
width: 0;
height: 0;
top: 3px;
left: calc(50% - #{$arrow-content-size});
border-left: $arrow-content-size solid transparent;
border-right: $arrow-content-size solid transparent;
border-bottom: $arrow-content-size solid nb-theme(context-menu-bg);
left: calc(50% - (#{$arrow-content-size}));
border-left: calc(#{$arrow-content-size}) solid transparent;
border-right: calc(#{$arrow-content-size}) solid transparent;
border-bottom: calc(#{$arrow-content-size}) solid nb-theme(context-menu-bg);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/framework/theme/components/menu/menu.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
align-items: center;

.menu-title {
flex: 1;
flex: 1 0 auto;
@include nb-rtl(text-align, right);
}
}
Expand Down

0 comments on commit 0db8c2c

Please sign in to comment.