Skip to content

Commit

Permalink
fix(menu): fix menu with icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed May 22, 2020
1 parent 1f3bd7a commit d7162b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/lib/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export const STYLES = (theme: ThemeVariables & LyMenuVariables, ref: ThemeRef) =
border-radius: 0
width: 100%
justify-content: flex-start
ly-icon {
margin-${after}: 16px
}
}`,
itemSubMenuTrigger: () => lyl `{
padding-${after}: 32px
Expand Down
2 changes: 1 addition & 1 deletion src/lib/themes/minima/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class MinimaDark extends MinimaBase {
menu: LyMenuTheme = {
root: new StyleCollection(
__ => lyl `{
${__.itemSubMenuTrigger}:after {
${__.item} ly-icon, ${__.itemSubMenuTrigger}:after {
color: ${color(0xffffff)}
}
}`
Expand Down
2 changes: 1 addition & 1 deletion src/lib/themes/minima/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class MinimaLight extends MinimaBase implements ThemeConfig {
menu: LyMenuTheme = {
root: new StyleCollection(
__ => lyl `{
${__.itemSubMenuTrigger}:after {
${__.item} ly-icon, ${__.itemSubMenuTrigger}:after {
color: ${color(0, 0, 0, 0.54)}
}
}`
Expand Down

0 comments on commit d7162b0

Please sign in to comment.