Skip to content

Fix custom device status colors not showing in row view#1650

Open
lacatoire wants to merge 1 commit intoopendcim:masterfrom
lacatoire:fix/1165-custom-status-colors-rowview
Open

Fix custom device status colors not showing in row view#1650
lacatoire wants to merge 1 commit intoopendcim:masterfrom
lacatoire:fix/1165-custom-status-colors-rowview

Conversation

@lacatoire
Copy link

@lacatoire lacatoire commented Feb 10, 2026

Summary

  • Applied !important to all custom device status color CSS rules in rowview.php, not just the Reserved status
  • Previously, department colors (generated later in the stylesheet) would override custom status colors due to CSS cascade order
  • The Reserved status was the only one working because it was the only one with !important
  • This also allows any custom status (e.g. Disposed, Out-of-Production) to override owner color on the row view

Fixes #1165
Fixes #1582

All custom status colors now get !important on their CSS background-color
rule, not just Reserved. Without this, department colors (generated later
in the stylesheet) would always override custom status colors due to CSS
cascade order.

Fixes opendcim#1165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow custom status to overwrite owner color on rowview Custom Device Status Colors not working in row view

1 participant