Not working custom links not visible in dark mode #9431

Closed
opened 2025-12-29 20:49:51 +01:00 by adam · 0 comments
Owner

Originally created by @julianstolp on GitHub (Apr 4, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0-beta1

Python Version

3.10

Steps to Reproduce

  1. Create a not working Custom Link on any model eg:
    image
  2. Go to Model Device in light mode
    image
  3. Toggle to darkmode, see nothing
    image
  4. Do mousehover
    image

Expected Behavior

Button switches class to class="btn btn-sm btn-outline-light"
image

Observed Behavior

Button does not switch class="btn btn-sm btn-outline-dark"

<a class="btn btn-sm btn-outline-dark" disabled="disabled" title="'dcim.models.devices.Device object' has no attribute 'device_role'"><i class="mdi mdi-alert"></i> Test</a>
Originally created by @julianstolp on GitHub (Apr 4, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0-beta1 ### Python Version 3.10 ### Steps to Reproduce 1. Create a not working Custom Link on any model eg: ![image](https://github.com/netbox-community/netbox/assets/41152397/2b7236be-97e6-477a-b1af-068102cfb357) 2. Go to Model Device in light mode ![image](https://github.com/netbox-community/netbox/assets/41152397/fcd47086-9bcf-42b1-95c4-d12adfcb67ea) 3. Toggle to darkmode, see nothing ![image](https://github.com/netbox-community/netbox/assets/41152397/c34aeec1-d0c8-4e86-9b68-fc2db38be48a) 4. Do mousehover ![image](https://github.com/netbox-community/netbox/assets/41152397/6f48edc3-dc0a-4af3-a010-369323388c27) ### Expected Behavior Button switches class to `class="btn btn-sm btn-outline-light"` ![image](https://github.com/netbox-community/netbox/assets/41152397/afc2135c-9787-403d-ad70-8036b3c10a26) ### Observed Behavior Button does not switch `class="btn btn-sm btn-outline-dark"` ``` <a class="btn btn-sm btn-outline-dark" disabled="disabled" title="'dcim.models.devices.Device object' has no attribute 'device_role'"><i class="mdi mdi-alert"></i> Test</a> ```
adam added the type: bugstatus: acceptedbetatopic: UI/UXseverity: low labels 2025-12-29 20:49:51 +01:00
adam closed this issue 2025-12-29 20:49:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9431