Skip to content

Commit

Permalink
chore: Update button styles for text buttons (#4450)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbodine1 authored and charlienparker committed Sep 16, 2024
1 parent d5368d3 commit f3bfab9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions app/javascript/css/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,20 @@ button.accordion-action {
margin-top: 1rem;
translate: 0.25rem 0;
}

button.text-button {
background-color: transparent;
border: none;
color: var(--button-primary-color);
cursor: pointer;
text-decoration: underline;
font-weight: normal;
padding: 0;
&:hover {
background-color: transparent;
color: var(--button-primary-active-color);
}
&:active {
color: var(--button-primary-active-color);
}
}
4 changes: 2 additions & 2 deletions app/views/shared/_shopping_nav_panel.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@

<% if show_exit_button %>
<li>
<a href=<%= main_app.destroy_user_session_path %>>
<button class="text-button" href=<%= main_app.destroy_user_session_path %>>
<%= l10n("log_out") %>
</a>
</button>
</li>
<% end %>
</ul>
Expand Down

0 comments on commit f3bfab9

Please sign in to comment.