Center both stepper glyphs on the item customization page

The +/- glyphs were wrapped in a flex-centered div, but only the +
button had been converted — the - button still used a plain span and
rendered off-center. Apply the same wrapping to both.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 11:52:48 +02:00
co-authored by Claude Sonnet 5
parent 8481032e30
commit 7f72baf97d
2 changed files with 9 additions and 2 deletions
@@ -63,6 +63,7 @@
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
padding: 0; padding: 0;
margin-right: 0;
border-radius: 50%; border-radius: 50%;
border: 1px solid $color-border; border: 1px solid $color-border;
background: $color-background; background: $color-background;
@@ -71,6 +72,12 @@
cursor: pointer; cursor: pointer;
transition: border-color 0.15s ease; transition: border-color 0.15s ease;
.icon {
display: flex;
align-items: center;
justify-content: center;
}
&:hover:not(:disabled) { &:hover:not(:disabled) {
border-color: $color-primary; border-color: $color-primary;
} }
@@ -84,7 +84,7 @@ export const MenuItemCustomizer = ({
disabled={quantity === 0} disabled={quantity === 0}
aria-label={`Remove one ${item.name}`} aria-label={`Remove one ${item.name}`}
> >
<span aria-hidden="true">−</span> <div aria-hidden="true" className={styles.icon}>−</div>
</button> </button>
<AnimatedNumber value={quantity} className={styles.count} /> <AnimatedNumber value={quantity} className={styles.count} />
<button <button
@@ -93,7 +93,7 @@ export const MenuItemCustomizer = ({
onClick={() => onAdd(item.id, checkedOptionIds)} onClick={() => onAdd(item.id, checkedOptionIds)}
aria-label={`Add one ${item.name}`} aria-label={`Add one ${item.name}`}
> >
<span aria-hidden="true">+</span> <div aria-hidden="true" className={styles.icon}>+</div>
</button> </button>
</div> </div>
</div> </div>