From 647214c513dc36196cd21dbf04396e05f89f8634 Mon Sep 17 00:00:00 2001 From: undefined Date: Thu, 13 Sep 2018 21:28:02 +0800 Subject: [PATCH] fix: modal confirm centered not work --- components/modal/style/confirm.less | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/components/modal/style/confirm.less b/components/modal/style/confirm.less index bec6f8f0e..048affe33 100644 --- a/components/modal/style/confirm.less +++ b/components/modal/style/confirm.less @@ -72,3 +72,20 @@ color: @success-color; } } + +.@{confirm-prefix-cls}-centered { + text-align: center; + &:before { + content: ''; + display: inline-block; + height: 100%; + vertical-align: middle; + width: 0; + } + .@{confirm-prefix-cls} { + display: inline-block; + vertical-align: middle; + top: 0; + text-align: left; + } +}