Adjust size styling for custom link buttons so they match default buttons #10659

Closed
opened 2025-12-29 21:34:18 +01:00 by adam · 1 comment
Owner

Originally created by @atownson on GitHub (Jan 16, 2025).

NetBox version

v4.2.1

Feature type

Change to existing functionality

Triage priority

I volunteer to perform this work (if approved)

Proposed functionality

Proposing to remove the btn-sm class from from Custom Link buttons, which will add padding to the buttons, so they match the built-in buttons on the object detail views.

Current styling:
Image
<a href="https://google.com" target="_blank" class="btn btn-sm btn-green">Custom Link</a>

Proposed styling:
Image
<a href="https://google.com" target="_blank" class="btn btn-green">Custom Link</a>

Use case

This change would style the Custom Link buttons identically to the built-in buttons.

Database changes

None

External dependencies

None

Originally created by @atownson on GitHub (Jan 16, 2025). ### NetBox version v4.2.1 ### Feature type Change to existing functionality ### Triage priority I volunteer to perform this work (if approved) ### Proposed functionality Proposing to remove the `btn-sm` class from from Custom Link buttons, which will add padding to the buttons, so they match the built-in buttons on the object detail views. Current styling: ![Image](https://github.com/user-attachments/assets/bbc9e1b6-8088-41c2-9c7d-c63ec713cf02) ```<a href="https://google.com" target="_blank" class="btn btn-sm btn-green">Custom Link</a>``` Proposed styling: ![Image](https://github.com/user-attachments/assets/bbe81236-b003-48cd-8c77-1377009e5aa5) ```<a href="https://google.com" target="_blank" class="btn btn-green">Custom Link</a>``` ### Use case This change would style the Custom Link buttons identically to the built-in buttons. ### Database changes None ### External dependencies None
adam added the type: feature label 2025-12-29 21:34:18 +01:00
adam closed this issue 2025-12-29 21:34:19 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 17, 2025):

Custom links are intentionally styled differently to distinguish them from built-in buttons.

@jeremystretch commented on GitHub (Jan 17, 2025): Custom links are intentionally styled differently to distinguish them from built-in buttons.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10659