cal.diy icon indicating copy to clipboard operation
cal.diy copied to clipboard

fix focus ring on number of seats [CAL-1699]

Open alexpgates opened this issue 3 years ago • 3 comments

What does this PR do?

This PR addresses #8928 not by shortening the width of the focus ring but by adjusting the width of the field to be consistent with other with similar settings with addOn suffixes.

Screenshot from original issue: 238645877-614dfe8d-ecc0-49e6-9ca0-018397a65633

Previously, this text field had a w-24class that shortened up the width of the field. However, when compared to other settings (for example, the Offset Start Timers setting on the "Limits" page) it seemed inconsistent to use the w-24class.

So instead, for consistency, I just removed the w-24class which corrects the issue with the focus ring and displays the field like this:

Screenshot 2023-05-17 at 17 22 31

I did consider an approach to shorten the focus ring similar to how it's done here:

Screenshot 2023-05-17 at 17 22 20

However I was unable to get a good width class that aligned. See:

Screenshot 2023-05-17 at 17 00 20

Too wide.

But I do maintain that the focus ring on the shortened fields look kind of bad anyway. I'd go with the full width field!

Fixes #8928

Loom Video: https://www.loom.com/share/347251d8eaea4b108984e36e1883a772

Note that the loom video demos the corrected field first (the number of seats) but then shows the "Offset Start Timers" field on the "Advanced" page to show how the updated field is consistent with other similar fields

Environment: main production (?)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

I only tested by viewing the page and observing the field with and focus ring behavior

Checklist

  • I haven't checked if my changes generate no new warnings
  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

alexpgates avatar May 17 '23 22:05 alexpgates

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2023 7:46am

vercel[bot] avatar May 17 '23 22:05 vercel[bot]

@alexpgates is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 17 '23 22:05 vercel[bot]

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

github-actions[bot] avatar May 17 '23 22:05 github-actions[bot]