Update Theme Context and CSS for Enhanced Placeholder Color and State Handling
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added a new CSS variable for text placeholder color, improving consistency across themes. - Updated the ThemeContext to set the new placeholder color based on dark mode settings. - Enhanced the state handling in Utils.js to include 'overdue' status, improving clarity in state representation.
This commit is contained in:
parent
749ddf0c31
commit
ae1194efb9
@ -2971,7 +2971,7 @@ body.objectKanbanColumnResizing * {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: var(--ant-color-text-placeholder, rgba(0, 0, 0, 0.25));
|
color: var(--color-text-placeholder, rgba(0, 0, 0, 0.25));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@ -200,6 +200,10 @@ export const ThemeProvider = ({ children }) => {
|
|||||||
'--color-table-row-border',
|
'--color-table-row-border',
|
||||||
isDarkMode ? '#303030' : '#f0f0f0'
|
isDarkMode ? '#303030' : '#f0f0f0'
|
||||||
)
|
)
|
||||||
|
root.style.setProperty(
|
||||||
|
'--color-text-placeholder',
|
||||||
|
isDarkMode ? '#4F4F4F' : '#BFBFBF'
|
||||||
|
)
|
||||||
}, [isDarkMode, primaryColorOverride])
|
}, [isDarkMode, primaryColorOverride])
|
||||||
|
|
||||||
const themeConfig = {
|
const themeConfig = {
|
||||||
|
|||||||
@ -285,6 +285,10 @@ export function getStateTagInfo(state) {
|
|||||||
status = 'success'
|
status = 'success'
|
||||||
text = 'Paid'
|
text = 'Paid'
|
||||||
break
|
break
|
||||||
|
case 'overdue':
|
||||||
|
status = 'error'
|
||||||
|
text = 'Overdue'
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
status = 'default'
|
status = 'default'
|
||||||
text = state || 'Unknown'
|
text = state || 'Unknown'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user