Skip to content

fix: [LM-4143] Render AppBar bottom border instead of full box border - #631

Merged
narekhayrapetyan-sd merged 5 commits into
mainfrom
LM-4143-appbar-bottom-border
Aug 10, 2026
Merged

fix: [LM-4143] Render AppBar bottom border instead of full box border#631
narekhayrapetyan-sd merged 5 commits into
mainfrom
LM-4143-appbar-bottom-border

Conversation

@Yolqin

@Yolqin Yolqin commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

PR description:

Removes the full box border AppBar inherited from Paper elevation0 (via the .MuiAppBar-root.MuiPaper-elevation0 compound selector), leaving a single bottom border. This changes the AppBar default for every @superdispatch/ui consumer, not just Shipper TMS — cross-repo verification is tracked in LM-4182. DrawerActions relied on the inherited box for its top divider, so it now declares its own.

Implemented:

  • AppBarOverrides.ts: bottom-border default; elevation={1}+ opts out.
  • DrawerActions.tsx: explicit top divider to avoid a sticky-state regression.
  • Updated jest snapshots + loki references (AppBar, AppDrawer).

Checklist:

  • I ran this code locally
  • I wrote the necessary tests
  • My code follows the style guidelines
  • I followed the instructions to create a pull request

JIRA card:

https://superdispatch.atlassian.net/browse/LM-4143

Should know about:

Visible UI change — before/after screenshots need adding (AppBar loses its box outline, keeps a bottom rule). Shared surface: affects all @superdispatch/ui AppBar consumers org-wide.

Screenshot 2026-08-04 at 7 49 05 PM

AppBar inherited Paper's elevation0 full box border, making the Shipper
TMS nav headers (Pricing Insights, Dashboard) inconsistent with the rest
of the bar. Override .MuiAppBar-root.MuiPaper-elevation0 so the compound
selector deterministically drops the box border and keeps a single
bottom border; elevation={1}+ consumers keep the elevated look.

- DrawerActions relied on the inherited box for its top-divider width, so
  it declares its own borderTop to avoid losing the divider on sticky.
- Changes the AppBar default for every @superdispatch/ui consumer;
  cross-repo verification tracked in LM-4182.
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Size Limit Report

Total Size: 596 kB

Size Change: +26 B (+0%)

Filename Size Change
packages/ui/pkg/dist-web/index.js 109 kB +26 B (+0%)
ℹ️ View Unchanged
Filename Size
packages/dates/pkg/dist-web/index.js 117 kB
packages/forms/pkg/dist-web/index.js 105 kB
packages/hooks/pkg/dist-web/index.js 914 B
packages/lab/pkg/dist-web/index.js 153 kB
packages/phones/pkg/dist-web/index.js 110 kB

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Preview deployed: https://a6c7ab33.web-ui-legacy.pages.dev

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🚨 Snapshot command failed

Snapshots are updated automatically in following commit f0b7a1c

Please review before merging.

Comment thread packages/ui/src/app-bar/AppBarOverrides.ts Outdated
@SiriusCrain

Copy link
Copy Markdown
Contributor

Please ensure that after update changes will be properly tested in all places where it used.
Some of custom overwrite in place can conflict with it, potentially

Comment thread .loki/reference/chrome.laptop/Phones/PhoneField_Basic.png
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🚨 Snapshot command failed

Snapshots are updated automatically in following commit d04ff34

Please review before merging.

@narekhayrapetyan-sd
narekhayrapetyan-sd merged commit bc4e53b into main Aug 10, 2026
1 of 3 checks passed
@narekhayrapetyan-sd
narekhayrapetyan-sd deleted the LM-4143-appbar-bottom-border branch August 10, 2026 10:29
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.

4 participants