From 70c6e47cde18c49879134822ee6a08e6bca09861 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Mon, 18 May 2020 17:07:33 +0800 Subject: [PATCH] style: add menu default textalign (#24253) --- components/menu/style/index.less | 1 + components/menu/style/rtl.less | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/menu/style/index.less b/components/menu/style/index.less index 73d2aa196cfd..c522c4d2b3d1 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -12,6 +12,7 @@ color: @menu-item-color; font-size: @menu-item-font-size; line-height: 0; // Fix display inline-block gap + text-align: left; list-style: none; background: @menu-bg; outline: none; diff --git a/components/menu/style/rtl.less b/components/menu/style/rtl.less index a2b6391d2c63..8dc0eaf47609 100644 --- a/components/menu/style/rtl.less +++ b/components/menu/style/rtl.less @@ -6,6 +6,7 @@ .@{menu-prefix-cls} { &-rtl { direction: rtl; + text-align: right; } &-item-group-title { @@ -22,7 +23,6 @@ } } - &-dark&-inline, &-dark&-vertical { .@{menu-prefix-cls}-rtl& {