Skip to content

Commit 032953e

Browse files
gbathreeclaude
andcommitted
Fix: unify font-family across all .button elements
<button> elements don't inherit font-family from parent by default in all browsers, causing a visible font mismatch between the link-based buttons (Back To Store, Back To Website, Cancel Order) and the button-tag-based Save Changes button on the order confirmation page. Add `font-family: inherit` to the base `.button, button` rule so all button elements use the inherited page font (Roboto). Remove the now-redundant `font-family: $body-font` from the `.primary` rule. Fixes openfoodfoundation#13688 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 243e704 commit 032953e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/webpacker/css/darkswarm/ui.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
.button, button {
5555
@include border-radius(0.5em);
5656

57+
font-family: inherit;
5758
outline: none;
5859

5960
&.x-small {
@@ -65,7 +66,6 @@
6566
}
6667

6768
.button.primary, button.primary {
68-
font-family: $body-font;
6969
background: $orange-450;
7070
color: white;
7171
}

0 commit comments

Comments
 (0)