Skip to content

#1676 Offers menu: Edit and View results show their description on the line below - #1726

Merged
mamataingole merged 1 commit into
devfrom
#1676/bug/offers-menu-row-gap
Nov 25, 2026
Merged

mamataingole merged 1 commit into
devfrom
#1676/bug/offers-menu-row-gap

Conversation

@mamataingole

Copy link
Copy Markdown
Collaborator

Closes #1676

What was wrong

In the Offers list's Actions menu, "Edit" and "View results" showed their description on the same line as the heading, with no gap ("EditChange what shoppers get, dates and limits"). Those two rows are links. a.df-button is display: inline-flex (apps/ui/shared/ui/states.css), so the heading and the description sat side by side. The other rows are <button>s, so they stack.

The fix

One rule in the shared menu, apps/ui/shared/ui/detail.css:

.df-more-panel a.df-button { display: block; }

No change to the offers markup, wording or styles. The same rule also fixes the link rows in the other MoreActions menus: Abandoned carts ("View cart", "Order #…") and Wishlists ("View"). The admin and platform PartnerActions / StoreActions menus have no link rows, so this rule doesn't apply to them.

The prototype (designs/Offers.dc.html, the row menu) shows every choice as a bold label with its description on the line below. docs/ui/store/OFFERS-DESIGN.md says nothing about the menu's layout, so it is unchanged.

Test

apps/ui/store/src/features/offers/offersCss.test.ts gets a case that reads the shared detail.css and checks that a link in the menu panel displays as block. happy-dom has no layout, so it reads the rule, as the other *Css.test.ts files do. The test failed before the fix and passes after.

Checks (local, Windows)

  • pnpm turbo run build typecheck lint test: build, typecheck and lint pass in every package.
  • Store tests alone: 116 files, 1666 tests passed. Platform tests alone: 46 files, 459 tests passed. Under the full turbo run, 2 store tests and the platform workers timed out from load; each passes when run alone.
  • api, sandbox, storefront-core and mobile-shop failures are the existing Windows-only failures (path handling, line endings, a local dev.env edit), not related to this change.
  • Not yet checked in a browser at 390 px and 1440 px.

🤖 Generated with Claude Code

… a button row

In the Offers Actions menu, Edit and View results are links, and
a.df-button is inline-flex (states.css), so the heading and its
description sat side by side with no gap. The shared more-panel now
shows a link row as a block. This also fixes the link rows in the
Abandoned carts and Wishlists menus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Read both changed files (detail.css rule and the test) against AGENTS.md priorities. Nothing worth changing: the rule's specificity beats states.css's a.df-button, it only affects link rows in the menu, and the test reads the shared CSS through a declared package export. I ran no tests. The PR notes it was not yet checked in a browser at 390 px / 1440 px.

@mamataingole
mamataingole merged commit 89a224f into dev Nov 25, 2026
4 checks passed
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.

Offers: in the Actions menu, "Edit" and "View results" run into their descriptions with no gap

1 participant