Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(email): brighten the selected message card (#8589)

Jacob Beckerman99a268151ff2
diff --git a/apps/marketing/src/features/marketing/components/email/frozen/MessageCard.tsx b/apps/marketing/src/features/marketing/components/email/frozen/MessageCard.tsx
index 117a9307df..f48bf556c3 100644
--- a/apps/marketing/src/features/marketing/components/email/frozen/MessageCard.tsx
+++ b/apps/marketing/src/features/marketing/components/email/frozen/MessageCard.tsx
@@ -26,7 +26,8 @@ interface MessageCardProps {
* `data-message-body-id` across an expand.
*
* Desktop shares the chat composer's rounded surface, soft shadow and dark
- * rim. Hover adds only a faint tint; keyboard focus uses a neutral outline.
+ * rim. Hover adds only a faint tint. The selected card uses a lighter 2% ink
+ * wash, short of a hovered settings row. Keyboard focus uses a neutral outline.
* Touch devices retain their existing card and selection treatment.
*/
export function MessageCard(props: MessageCardProps) {
@@ -45,7 +46,8 @@ export function MessageCard(props: MessageCardProps) {
: props.allowHover && 'hover:overlay-hover'
: [
'focus-visible:outline-1 focus-visible:outline-ink/20 focus-visible:outline-offset-2',
- props.isSelected && 'z-1',
+ props.isSelected &&
+ 'z-1 overlay-[color-mix(in_oklab,var(--color-ink)_2%,transparent)]',
!props.isSelected &&
props.allowHover &&
'hover:overlay-[color-mix(in_srgb,var(--color-ink)_1%,transparent)]',
diff --git a/apps/web/src/features/email-message/components/message-card.tsx b/apps/web/src/features/email-message/components/message-card.tsx
index fa2810da9f..3b53b602c5 100644
--- a/apps/web/src/features/email-message/components/message-card.tsx
+++ b/apps/web/src/features/email-message/components/message-card.tsx
@@ -26,7 +26,8 @@ interface MessageCardProps {
* `data-message-body-id` across an expand.
*
* Desktop shares the chat composer's rounded surface, soft shadow and dark
- * rim. Hover adds only a faint tint; keyboard focus uses a neutral outline.
+ * rim. Hover adds only a faint tint. The selected card uses a lighter 2% ink
+ * wash, short of a hovered settings row. Keyboard focus uses a neutral outline.
* Touch devices retain their existing card and selection treatment.
*/
export function MessageCard(props: MessageCardProps) {
@@ -47,7 +48,8 @@ export function MessageCard(props: MessageCardProps) {
: props.allowHover && 'hover:overlay-hover'
: [
'focus-visible:outline-1 focus-visible:outline-ink/20 focus-visible:outline-offset-2',
- props.isSelected && 'z-1',
+ props.isSelected &&
+ 'z-1 overlay-[color-mix(in_oklab,var(--color-ink)_2%,transparent)]',
!props.isSelected &&
props.allowHover &&
'hover:overlay-[color-mix(in_srgb,var(--color-ink)_1%,transparent)]',
diff --git a/docs/agent-guide/email.md b/docs/agent-guide/email.md
index b8aeb74996..b498ba6b86 100644
--- a/docs/agent-guide/email.md
+++ b/docs/agent-guide/email.md
@@ -399,8 +399,10 @@ Collapsed thread cards use a compact text snippet; expanding mounts the message
body and its attachments. On phones, messages form flat rows with horizontal
separators and 16px side gutters; collapsed previews show one line. Desktop
keeps rounded cards matching the chat composer: soft shadows in light mode,
-the same subtle 3D rim in dark mode, and a faint hover tint. Desktop selection
-does not add an accent-colored ring; keyboard focus has a neutral outline.
+the same subtle 3D rim in dark mode, and a faint hover tint. The selected
+card uses a 2% ink wash, brighter than that hover and lighter than a hovered
+settings row. Desktop selection does not add an accent-colored ring; keyboard
+focus has a neutral outline.
On touch, the floating Reply, Forward, previous/next email, and done controls
use the mobile dock's chrome fill and icon color in both themes.
Replies appear inline on desktop and in a full-screen composer on touch devices,