Skip to content

Commit 7e893c3

Browse files
authored
applying updated pul-primary styling to dashboard buttons (#2207)
ref #2014
1 parent e08134c commit 7e893c3

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

app/assets/stylesheets/_dashboard.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,14 @@
417417
gap: 1px;
418418

419419
.request-btn {
420+
/* Outline properties */
421+
outline-style: solid;
422+
outline-color: black;
423+
outline-width: 1px; /* Adjust outline thickness */
424+
425+
/* Space between button and outline */
426+
outline-offset: 2px; /* Adjust the offset as needed */
427+
420428
display: flex;
421429
padding: 0.5rem 1.25rem;
422430
align-items: flex-start;
@@ -434,6 +442,14 @@
434442
}
435443

436444
.request-options {
445+
/* Outline properties */
446+
outline-style: solid;
447+
outline-color: black;
448+
outline-width: 1px; /* Adjust outline thickness */
449+
450+
/* Space between button and outline */
451+
outline-offset: 2px; /* Adjust the offset as needed */
452+
437453
display: flex;
438454
padding: 0.5rem 0.25rem;
439455
align-items: flex-start;

app/assets/stylesheets/application.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,15 @@ h6 {
159159
text-decoration: none;
160160
}
161161

162+
a.pul-button-primary {
163+
/* Outline properties */
164+
outline-style: solid;
165+
outline-color: black;
166+
outline-width: 1px; /* Adjust outline thickness */
167+
168+
/* Space between button and outline */
169+
outline-offset: 2px; /* Adjust the offset as needed */
170+
}
162171
input[type="submit"]:enabled.pul-button-primary {
163172
/* Outline properties */
164173
outline-style: solid;

app/views/dashboard/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<div class="dashboard-admin-buttons">
99
<% if current_user.eligible_sysadmin? %>
10-
<%= link_to "Requests", requests_path(), class: "btn btn-dark btn-sm", id: "requests-listing-button" %>
10+
<%= link_to "Requests", requests_path(), class: "pul-button pul-button-primary", id: "requests-listing-button" %>
1111
<% end %>
1212
</div>
1313

0 commit comments

Comments
 (0)