Skip to content

Commit

Permalink
refactor(context menu): extract text alignment to theme property (#2148)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Dec 30, 2019
1 parent 7c79d1d commit 011edd1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
nb-menu {
border-radius: nb-theme(context-menu-border-radius);
overflow: hidden;
text-align: center;
text-align: nb-theme(context-menu-text-align);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { NbPositionedContainer, NbRenderableContainer } from '../cdk/overlay/ove
* context-menu-border-style:
* context-menu-border-width:
* context-menu-border-radius:
* context-menu-text-align:
* context-menu-min-width:
* context-menu-max-width:
* context-menu-shadow:
Expand Down
1 change: 1 addition & 0 deletions src/framework/theme/styles/themes/_mapping.scss
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ $eva-mapping: (
context-menu-border-style: solid,
context-menu-border-width: 0,
context-menu-border-radius: border-radius,
context-menu-text-align: center,
context-menu-min-width: 10rem,
context-menu-max-width: 15rem,
context-menu-shadow: shadow,
Expand Down

0 comments on commit 011edd1

Please sign in to comment.