Skip to content

refactor(ui): standardize section, floating-control, and icon patterns#57

Merged
favasconcelos merged 4 commits into
mainfrom
feature/ui-consistency-cleanup
Jul 18, 2026
Merged

refactor(ui): standardize section, floating-control, and icon patterns#57
favasconcelos merged 4 commits into
mainfrom
feature/ui-consistency-cleanup

Conversation

@favasconcelos

Copy link
Copy Markdown
Owner

Summary

Cleans up UI components and theme setup for consistent spacing, borders, focus states, and icon handling.

Changes

  • Shared primitives

    • Added Section, SectionDivider, and FloatingControl components.
    • Refactored About, Experience, Skills, and Contact to use Section.
    • Contact uses Section as="div" to stay semantically inside <footer>.
  • Floating controls (theme + language)

    • Both now share the same FloatingControl wrapper.
    • Unified border hover behavior: hover:border-accent/50 on the language switcher panel.
    • Removed the theme toggle’s explicit focus ring so both controls rely on the same global :focus-visible style.
  • Focus ring

    • Changed global :focus-visible border-radius from 4px to inherit so the focus outline matches each element (circular on rounded-full buttons).
  • Icons

    • Removed unused Skype and Twitter icon types/components.
    • Normalized remaining SVGs with xmlns, fill="currentColor", aria-hidden, and focusable="false".
    • Removed the [&>svg]:fill-current workaround from Contact links.

Validation

  • npm run fmt:check
  • npm run lint
  • npm run build

- Add shared Section, SectionDivider, and FloatingControl components
- Refactor About, Experience, Skills, and Contact to use Section
- Unify ThemeToggle and LanguageSwitcher border/hover/focus behavior
- Normalize icon SVG attributes and remove unused Skype/Twitter icons
- Make global focus-visible radius inherit element border-radius
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploying portifolio with  Cloudflare Pages  Cloudflare Pages

Latest commit: acb8047
Status: ✅  Deploy successful!
Preview URL: https://d4719a4b.portifolio-1p0.pages.dev
Branch Preview URL: https://feature-ui-consistency-clean.portifolio-1p0.pages.dev

View logs

- Make LanguageSwitcher panel h-11 to match ThemeToggle
- Use h-9 buttons inside LanguageSwitcher for consistent vertical rhythm
- Change skill badges from rounded (4px) to rounded-full
- Align hover border color to accent for all bordered controls
- Add HeaderControls component that renders both in a single floating bar
- Shrink ThemeToggle and LanguageSwitcher to h-9 (36px)
- Remove individual FloatingControl wrappers from each component
- Position combined controls at top-4 right-4
@favasconcelos
favasconcelos merged commit 1a5d234 into main Jul 18, 2026
2 checks passed
@favasconcelos
favasconcelos deleted the feature/ui-consistency-cleanup branch July 18, 2026 14:42
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.

1 participant