Skip to content

Feat/title highlight box 775#780

Merged
magic-peach merged 2 commits into
magic-peach:mainfrom
Rucha0901:feat/title-highlight-box-775
May 20, 2026
Merged

Feat/title highlight box 775#780
magic-peach merged 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
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
reframe Ready Ready Preview, Comment May 20, 2026 2:43pm

@magic-peach magic-peach added gssoc:approved Approved for GSSoC'26 quality:clean Well-implemented, clean code labels May 20, 2026
@magic-peach magic-peach merged commit d36ae7f into magic-peach:main May 20, 2026
10 of 12 checks passed
jaygaikar-09 pushed a commit to jaygaikar-09/reframe that referenced this pull request May 21, 2026
* fix(ui): hide number input spinners to prevent value visibility overlap (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

* feat(ui): add highlighted box around REFRAME title (magic-peach#775)

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

Co-authored-by: Akanksha Trehun <146705736+magic-peach@users.noreply.github.com>
Ayush-kathil pushed a commit to Ayush-kathil/reframe that referenced this pull request May 21, 2026
* fix(ui): hide number input spinners to prevent value visibility overlap (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

* feat(ui): add highlighted box around REFRAME title (magic-peach#775)

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

Co-authored-by: Akanksha Trehun <146705736+magic-peach@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Approved for GSSoC'26 level:beginner Beginner level - 20 pts quality:clean Well-implemented, clean code 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

2 participants