From 8051224122dc514b3e3d19049f840049d22f8caa Mon Sep 17 00:00:00 2001 From: "jason.lam" Date: Tue, 23 Jan 2024 11:15:34 +0800 Subject: [PATCH] update disabled field color --- src/themes/themeConst.js | 5 +++-- src/translations/zh-HK.json | 2 +- src/utils/FieldUtils.js | 4 ---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/themes/themeConst.js b/src/themes/themeConst.js index 770f7c8..7ff2665 100644 --- a/src/themes/themeConst.js +++ b/src/themes/themeConst.js @@ -182,7 +182,7 @@ export const PNSPS_THEME = createTheme({ input: { padding: '10.5px 14px 10.5px 12px', '&.MuiOutlinedInput-input.Mui-disabled': { - WebkitTextFillColor: '#888888', + WebkitTextFillColor: 'rgba(0, 0, 0, 1)', }, color: 'rgba(0, 0, 0, 0.85)' }, @@ -239,7 +239,8 @@ export const PNSPS_THEME = createTheme({ //padding: '1px', // Adjust the padding as needed }, '& .MuiInputBase-input:disabled': { - color: 'rgba(0, 0, 0, 0.8)', + color: 'rgba(0, 0, 0, 1)', + backgroundColor: "#f8f8f8", //backgroundColor: '#777777', // Set background color to #777777 for disabled state //color: '#010101', // Set text color to #111111 for disabled state }, diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json index 85ff7f8..af772a6 100644 --- a/src/translations/zh-HK.json +++ b/src/translations/zh-HK.json @@ -332,7 +332,7 @@ "unlock": "解鎖", "pendingFor": "待批核", "active": "生效中", - "primary": "源自", + "primary": "主要帳戶", "submitApplication": "提交公共啟事申請", "applicationSubheading": "提供你的啟事內容作排版,校對及計價。", diff --git a/src/utils/FieldUtils.js b/src/utils/FieldUtils.js index 8e6fb02..a1463f3 100644 --- a/src/utils/FieldUtils.js +++ b/src/utils/FieldUtils.js @@ -191,10 +191,6 @@ export const initField = ({ type, valueName, form, disabled, multiline, handleCh value={form.values[valueName]} disabled={disabled} sx={{ - "& .MuiInputBase-input.Mui-disabled": { - WebkitTextFillColor: "#000000", - background: "#f8f8f8", - }, width: width ? width : '100%' }} {...props}