Skip to content

🎨 Palette: Add tactile feedback to interactive elements#25

Open
christopherfoxjr wants to merge 1 commit into
mainfrom
palette-tactile-feedback-3148731666133338254
Open

🎨 Palette: Add tactile feedback to interactive elements#25
christopherfoxjr wants to merge 1 commit into
mainfrom
palette-tactile-feedback-3148731666133338254

Conversation

@christopherfoxjr
Copy link
Copy Markdown
Member

This PR implements a "tactile feedback" micro-UX improvement. When a user interacts with a button, navigation link, or FAQ header, the element now subtly scales down (0.97), simulating a physical press.

Key changes:

  • Added scale(0.97) transform on :active state for primary interactive classes including .nav-brand, .nav-links a, .btn-ghost, .btn-solid, .btn-hero-primary, .btn-hero-secondary, .feature-cta, and .faq-q.
  • Standardized transition timing using cubic-bezier(0.4, 0, 0.2, 1) for a responsive feel.
  • Ensured display: inline-block or display: flex for all affected elements to support CSS transforms (specifically for button and link classes).
  • Cleaned up development artifacts and binary verification media to keep the repository lean.
  • Verified visual behavior and accessibility via Playwright.

PR created automatically by Jules for task 3148731666133338254 started by @christopherfoxjr

This change adds a subtle scale(0.97) transform to buttons, links, and
FAQ items on click/tap, providing visual confirmation of interaction.
Standardized transition timings and display properties were adjusted
to ensure smooth and reliable feedback across all components.

Co-authored-by: christopherfoxjr <213370400+christopherfoxjr@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying cybr with  Cloudflare Pages  Cloudflare Pages

Latest commit: aec240b
Status: ✅  Deploy successful!
Preview URL: https://ac90c781.cybr.pages.dev
Branch Preview URL: https://palette-tactile-feedback-314.cybr.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying foxos with  Cloudflare Pages  Cloudflare Pages

Latest commit: aec240b
Status: ✅  Deploy successful!
Preview URL: https://a6569bfa.foxos.pages.dev
Branch Preview URL: https://palette-tactile-feedback-314.foxos.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying wolfos with  Cloudflare Pages  Cloudflare Pages

Latest commit: aec240b
Status: ✅  Deploy successful!
Preview URL: https://956aefed.wolfos.pages.dev
Branch Preview URL: https://palette-tactile-feedback-314.wolfos.pages.dev

View logs

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