Skip to content

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Apr 23, 2025

Fixes: #17151 add color backgrounds for circuit type

This PR updates the type column in the Circuits table to use ColoredLabelColumn, which applies the configured color for each Circuit Type as a background. This improves visual clarity and consistency with how Rack Roles are displayed.

As part of this change, the now-redundant linkify=True attribute has been removed from the column definition, since ColoredLabelColumn already provides clickable labels by default.

Refactors the 'type' column to use ColoredLabelColumn for improved
visual distinction, aligning it with the rack roles display.
Removes the now redundant 'linkify' attribute from the column
definition.
@jnovinger jnovinger requested review from a team and jeremystretch and removed request for a team April 23, 2025 20:59
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pheus!

@jeremystretch jeremystretch merged commit 88dd7a1 into netbox-community:main Apr 24, 2025
3 checks passed
@pheus pheus deleted the 17151-add-color-background-for-circuits-type branch April 24, 2025 12:54
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add color backgrounds for circuit type

2 participants