Skip to content

Feat/title highlight box 775#780

Open
Rucha0901 wants to merge 2 commits into
magic-peach:mainfrom
Rucha0901:feat/title-highlight-box-775
Open

Feat/title highlight box 775#780
Rucha0901 wants to merge 2 commits into
magic-peach:mainfrom
Rucha0901:feat/title-highlight-box-775

Conversation

@Rucha0901
Copy link
Copy Markdown
Contributor

Bug Summary

Closes #775

The REFRAME title blended into the page background without clear visual distinction, appearing as plain text with no emphasis.

What Changed

src/components/VideoEditor.tsx

Wrapped the <h1>REFRAME</h1> and its subtitle <p> in a styled highlight container:

Class Purpose
border border-[var(--border)] Respects light / dark / high-contrast border token
border-l-4 border-l-film-600 Film-red left accent bar for brand identity
bg-[var(--surface)] Lifted surface so the box reads off the page background
rounded-xl Consistent corner radius with the rest of the card system
px-5 py-3 Comfortable breathing room around the text
shadow-sm Subtle depth to separate the title from the background

An aria-label was also added to the wrapper for screen reader clarity.

Theme Compatibility

All classes use existing CSS design tokens (--border, --surface, film-600), so the box adapts automatically to:

  • ✅ Light mode
  • ✅ Dark mode
  • ✅ High-contrast mode

Acceptance Criteria

  • REFRAME title is visually enclosed in a styled box/container
  • Box has padding, border, background and shadow for clear distinction
  • Film-red left accent border matches the brand identity
  • Works correctly in light, dark and high-contrast themes
  • tsc --noEmit passes with zero errors

Rucha0901 added 2 commits May 20, 2026 09:58
…ap (magic-peach#776)

Browser-native increment/decrement arrows on <input type='number'> fields
overlap with entered values in narrow containers, making text hard to read.

Fix: suppress the spinner UI using cross-browser Tailwind arbitrary-value classes:
  - [appearance:textfield]                        — Firefox
  - [&::-webkit-outer-spin-button]:appearance-none — Chrome/Brave/Edge/Safari
  - [&::-webkit-inner-spin-button]:appearance-none — Chrome/Brave/Edge/Safari

Affected inputs:
  - TrimControl.tsx   — Start (sec) and End (sec) number fields
  - PresetSelector.tsx — Custom Width (px) and Height (px) fields

Keyboard up/down arrow key stepping still works; only the visual spinner
arrows are removed, which fully resolves the overlap/readability bug.

Closes magic-peach#776
The REFRAME title blended into the background without clear visual
distinction. Wrap the h1 + subtitle in a styled container to make the
brand mark prominent and immediately recognisable.

Changes to src/components/VideoEditor.tsx:
- Wrap <h1>REFRAME</h1> and its subtitle <p> in a div with:
    border border-[var(--border)]   — respects light / dark mode border token
    border-l-4 border-l-film-600    — film-red left accent bar for brand identity
    bg-[var(--surface)]             — lifted surface so it reads off the page bg
    rounded-xl                      — consistent corner radius with card system
    px-5 py-3                       — breathing room around the text
    shadow-sm                       — subtle depth to separate from background
- aria-label added so screen readers announce the landmark correctly

The box reuses existing design tokens and film-600 brand colour, so it
adapts automatically to light, dark and high-contrast themes.

Closes magic-peach#775
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

@Rucha0901 is attempting to deploy a commit to the magic-peach1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

⚠️ PR Format Issues — @Rucha0901

Please fix the following before your PR can be reviewed:

  • ⚠️ Use a conventional PR title. Examples:
    • feat: add dark mode support
    • fix: resolve aria label missing on slider
    • docs: add deployment guide to README

Push new commits after fixing — this comment will update automatically.

📖 CONTRIBUTING.md

@github-actions
Copy link
Copy Markdown
Contributor

👋 Thanks for your PR, @Rucha0901!

Welcome to Reframe — a browser-based video editor built for everyone 🎬

What happens next

  1. 🤖 Automated checks — build & TypeScript typecheck will run automatically
  2. Vercel preview — a preview deployment will be created (requires maintainer authorization for fork PRs)
  3. 👀 Code review — a maintainer will review your changes
  4. 🚀 Merge — once approved, your PR will be merged!

Quick checklist

  • PR title follows Conventional Commits (e.g. feat: add dark mode)
  • Linked the issue this PR closes (e.g. Closes #123)
  • Tested the changes locally (bun run dev)
  • Build passes (bun run build)

Useful links

Happy coding! 🎉

@github-actions github-actions Bot added level:beginner Beginner level - 20 pts type:bug Bug fix type:design UI/UX design labels May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:beginner Beginner level - 20 pts type:bug Bug fix type:design UI/UX design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Add a highlighted container/box around the "REFRAME" title

1 participant