Repository navigation
#1676 Offers menu: Edit and View results show their description on the line below - #1726
Merged
Merged
Conversation
… 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>
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-buttonisdisplay: 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:No change to the offers markup, wording or styles. The same rule also fixes the link rows in the other
MoreActionsmenus: Abandoned carts ("View cart", "Order #…") and Wishlists ("View"). The admin and platformPartnerActions/StoreActionsmenus 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.mdsays nothing about the menu's layout, so it is unchanged.Test
apps/ui/store/src/features/offers/offersCss.test.tsgets a case that reads the shareddetail.cssand 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.tsfiles 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.dev.envedit), not related to this change.🤖 Generated with Claude Code