Center the +/- glyphs in the quantity stepper buttons

.stepperButton relied on the browser's default button content
centering, which the appearance: none reset in the previous commit
took away. Explicitly flex-center it (and zero out padding/line-height)
across all three copies (MenuItemCustomizer, MenuList, basket).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RvYdJ3os7tumimsLdLu2j9
This commit is contained in:
2026-09-13 21:24:23 +02:00
co-authored by Claude Sonnet 5
parent 05a91bb5c3
commit b0ef917cfc
3 changed files with 15 additions and 0 deletions
@@ -57,12 +57,17 @@
} }
.stepperButton { .stepperButton {
display: flex;
align-items: center;
justify-content: center;
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
padding: 0;
border-radius: 50%; border-radius: 50%;
border: 1px solid $color-border; border: 1px solid $color-border;
background: $color-background; background: $color-background;
color: $color-text; color: $color-text;
line-height: 1;
cursor: pointer; cursor: pointer;
transition: border-color 0.15s ease; transition: border-color 0.15s ease;
@@ -75,12 +75,17 @@
} }
.stepperButton { .stepperButton {
display: flex;
align-items: center;
justify-content: center;
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
padding: 0;
border-radius: 50%; border-radius: 50%;
border: 1px solid $color-border; border: 1px solid $color-border;
background: $color-background; background: $color-background;
color: $color-text; color: $color-text;
line-height: 1;
cursor: pointer; cursor: pointer;
align-self: center; align-self: center;
justify-self: center; justify-self: center;
+5
View File
@@ -133,12 +133,17 @@
} }
.stepperButton { .stepperButton {
display: flex;
align-items: center;
justify-content: center;
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
padding: 0;
border-radius: 50%; border-radius: 50%;
border: 1px solid $color-border; border: 1px solid $color-border;
background: $color-background; background: $color-background;
color: $color-text; color: $color-text;
line-height: 1;
cursor: pointer; cursor: pointer;
align-self: center; align-self: center;
justify-self: center; justify-self: center;