Skip to content

fix(account): BACK-699 refine backorder layout and colors on order details#2677

Open
bc-apostoliuk wants to merge 2 commits into
masterfrom
BACK-699-account-backorder-layout
Open

fix(account): BACK-699 refine backorder layout and colors on order details#2677
bc-apostoliuk wants to merge 2 commits into
masterfrom
BACK-699-account-backorder-layout

Conversation

@bc-apostoliuk

@bc-apostoliuk bc-apostoliuk commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What?

Refines the backorder display on the account → order details page (templates/components/account/order-contents.html + templates/pages/account/orders/details.html), addressing the font/layout issues called out in BACK-699. All changes are in assets/scss/components/stencil/account/_account.scss.

  • Top-align all cells in a product row. .account-product--alignMiddle lays the checkbox, image figure, and body out as table cells. Previously the checkbox and body were vertical-align: middle while the image figure fell back to the default baseline, so the image never lined up with the rest — and once backorder text grew the row height, the misalignment made rows hard to read. All three cells (.account-product-checkItem, .account-product-figure, .account-product-body) are now vertical-align: top, so every cell top-aligns regardless of simple/complex product or whether backorder text is present.
  • Remove the extra vertical gap between backorder rows. .account-product-backorder-prompts dropped its margin-bottom: spacing("quarter") (and the now-redundant :last-of-type reset) in favour of margin-bottom: 0, so "ready to ship / will be backordered / backorder message" read as one tight group instead of a confusingly loose stack.
  • Unify backorder text colour to #757575. Added the colour to .account-product-backorder-prompts (was inheriting the too-dark body text) and changed .account-order-backorder-expectation from color("greys", "light") (#e1e6eb, too light) to #757575. This now covers qty ready to ship, qty backordered, the backorder message, and the shipping expectation message — all per the ticket's spec colour.

#757575 is not an existing Citadel grey token (nearest are #798289 / #acb3be), so the literal hex from the ticket is used in both rules.

Requirements

  • CHANGELOG.md entry added (required for code changes only)

Tickets / Documentation

Screenshots (if appropriate)

BACK-699-before-after

Note

Low Risk
Presentation-only SCSS on account order details; no logic, templates, or data handling changes.

Overview
Refines account order details backorder styling in _account.scss (BACK-699): no template changes.

Layout: In .account-product--alignMiddle, checkbox, image, and body table cells now use vertical-align: top instead of middle/default so rows stay aligned when backorder copy increases height.

Spacing & color: .account-product-backorder-prompts drops bottom margin between stacked lines (margin-bottom: 0). Backorder prompts and .account-order-backorder-expectation share a new $account-backorder-textColor (#757575) so qty ready to ship, backordered qty, messages, and shipping expectation read consistently (replacing inherited body color and overly light color("greys", "light")).

CHANGELOG Draft entry documents the same.

Reviewed by Cursor Bugbot for commit 8cfd6f9. Bugbot is set up for automated code reviews on this repo. Configure here.

…tails

Top-align all product row cells (checkbox, image, body) so rows stay
readable whether or not backorder text is present, remove the extra
vertical gap between backorder rows, and use #757575 for all backorder
text (qty ready to ship, qty backordered, backorder message, and the
shipping expectation message).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bc-apostoliuk bc-apostoliuk requested a review from a team as a code owner June 11, 2026 12:34
Comment thread assets/scss/components/stencil/account/_account.scss Outdated
…variable

Reviewer asked whether a color token could be used instead of a literal
hex. No Citadel greys token matches the design-specified #757575
(nearest is the bluish #798289), so the value is kept but defined once
as $account-backorder-textColor to avoid the repeated magic number.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread CHANGELOG.md
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Draft
- Refine backorder display on the account order details page: top-align all product row cells (checkbox, image, body) so rows stay readable with or without backorder text, remove the extra vertical gap between backorder rows, and use `#757575` for all backorder text (qty ready to ship, qty backordered, backorder message, and shipping expectation message)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you create a more concise description here? Also add please the link in the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants