fix(design-system): remove useElevatedSurface shim from ActionListItem#33163
fix(design-system): remove useElevatedSurface shim from ActionListItem#33163georgewrmarshall wants to merge 2 commits into
Conversation
MMDS surface tokens now handle pure-black press/surface styling internally. Replace the app-level useElevatedSurface() shim with bg-default and bg-default-pressed per the component design spec. Fixes TMCU-1047 Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
| ({ pressed }: { pressed: boolean }) => | ||
| tw.style( | ||
| `${surfaceClass} px-4 py-3`, | ||
| 'bg-default px-4 py-3', |
There was a problem hiding this comment.
@cursoragent there should be no background color on an ActionListItem it's background color should be copletely handled by the parent container. Remove bg-default here
There was a problem hiding this comment.
Addressed the review feedback. ActionListItem no longer paints its own default background — the parent container owns the surface.
Change
const getStyle = useCallback(
({ pressed }: { pressed: boolean }) =>
tw.style(
'px-4 py-3',
pressed && !isDisabled && 'bg-pressed',
isDisabled && 'opacity-50',
),
[tw, isDisabled],
);- Removed
bg-defaultso rows are transparent and inherit the parent surface (e.g.BottomSheetwithuseElevatedSurface()) - Switched pressed state from
bg-default-pressedtobg-pressedto match the MMDSActionListItemimplementation - Updated the README design spec accordingly
All 23 unit tests pass. Pushed to PR #33163.
Parent containers (e.g. BottomSheet) own the surface color. Remove bg-default from ActionListItem and use bg-pressed for press feedback, matching the MMDS ActionListItem implementation. Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
While No E2E tests are warranted for this purely visual styling change. The risk is low and limited to visual regression, which is not covered by E2E smoke tests. Performance Test Selection: |
|





Description
MMDS surface tokens now handle pure-black press/surface styling internally. This PR removes the redundant
useElevatedSurface()shim from the tempActionListItemcomponent. The row background is now transparent by default so the parent container (e.g.BottomSheet) owns the surface color. Press feedback usesbg-pressed, matching the MMDSActionListItemimplementation.Files updated:
app/component-library/components-temp/ActionListItem/ActionListItem.tsxapp/component-library/components-temp/ActionListItem/README.mdChangelog
CHANGELOG entry: null
Related issues
Fixes: TMCU-1047
Refs: TMCU-622 (Pure Black epic)
Manual testing steps
N/A for automated cloud-agent environment — visual QA on device/simulator recommended.
Screenshots/Recordings
N/A — styling change relies on parent surface and MMDS press tokens; no visual regression expected.
Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an example (N/A — no new traced operations)Pre-merge reviewer checklist