From 2c454ccb281152be9c6ee6906965406efcff094f Mon Sep 17 00:00:00 2001 From: longjuan <769022681@qq.com> Date: Mon, 1 Jul 2024 11:19:17 +0800 Subject: [PATCH] feat: add disabled state styling to checkboxes (#6220) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area ui /kind improvement #### What this PR does / why we need it: 当前多选框disabled与非disabled样式上无区别,不好分辨。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/5974 #### Special notes for your reviewer: ![image](https://github.com/halo-dev/halo/assets/28662535/f3a3b683-4964-4701-a14e-3b12b0af26c1) #### Does this PR introduce a user-facing change? ```release-note 增加多选框disabled样式 ``` --- ui/src/styles/tailwind.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/styles/tailwind.css b/ui/src/styles/tailwind.css index 4d9e70473..360a0cec8 100644 --- a/ui/src/styles/tailwind.css +++ b/ui/src/styles/tailwind.css @@ -22,5 +22,5 @@ textarea { } input[type="checkbox"] { - @apply rounded-sm border-gray-500; + @apply rounded-sm border-gray-500 disabled:bg-gray-200 disabled:opacity-50; }