Skip to content

feat(styles): shared row-highlight-flash animation for briefly highlighting a table row - #8083

Merged
renemadsen merged 1 commit into
stablefrom
feat/shared-highlight-row
Sep 18, 2026
Merged

renemadsen merged 1 commit into
stablefrom
feat/shared-highlight-row

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Needed by microting/eform-backendconfiguration-plugin#1290 and #1291 (part of epic microting/eform-backendconfiguration-plugin#1304). After deleting or editing a log in the Compliance Rapport view, the view scrolls to the relevant row and highlights it for about 3 s.

Per the repo rule, SCSS lives here and not in the plugin. This adds a global tr.row-highlight-flash > td rule to src/scss/components/_table.scss. The look matches the task tracker's existing highlight: a 4px #1e88e5 inset outline plus a powder tint that fade out over 3 s.

  • New class name. highlight-row is already styled per-component by three plugin tables (property-workers, task-management, files). Those tables are left exactly as they are.
  • Tint drawn as a background-image. It uses a registered @property colour. Animating background-color or box-shadow would lose to the !important rules on sticky cells in _workspace-mat-overrides.scss.
  • Theme-aware. The tint uses the --surface-powder token, which is defined for theme-eform and theme-workspace in both light and dark.
  • Nothing else uses the class, so no existing table changes.

🤖 Generated with Claude Code

… a table row

Adds a global `tr.row-highlight-flash > td` fade (4px blue inset outline plus a
theme-aware powder tint, held for 70% of 3 s then faded) matching the task
tracker's existing `.highlighted` look. It uses a new class rather than
`highlight-row`, which existing plugin tables already style themselves, so
those tables keep their current look. The tint uses background-image driven
by a registered custom property so it also reaches pinned (sticky) cells,
where box-shadow and background-color are forced with !important.

Needed by microting/eform-backendconfiguration-plugin#1290 and #1291
(compliance report rows briefly highlighted after delete/edit).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 18, 2026 17:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Existing pinned-cell background rules override the highlight tint and must be addressed.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds shared SCSS styling for a temporary, theme-aware table-row highlight animation.

Changes:

  • Adds a 3-second blue outline and fading powder tint.
  • Registers an animatable tint property.
  • Preserves existing component-specific styles.
File summaries
File Summary
eform-client/src/scss/components/_table.scss Adds shared row-highlight animation styling.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +233 to +238
tr.row-highlight-flash > td {
outline: 4px solid transparent;
outline-offset: -4px;
background-image: linear-gradient(var(--highlight-row-tint), var(--highlight-row-tint));
animation: highlightRowFade 3s ease-out;
}
@renemadsen
renemadsen merged commit 58bd5cf into stable Sep 18, 2026
31 of 35 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.

2 participants