fix focus ring on number of seats [CAL-1699]
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:
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:
I did consider an approach to shorten the focus ring similar to how it's done here:
However I was unable to get a good width class that aligned. See:
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
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 |
@alexpgates is attempting to deploy a commit to the cal Team on Vercel.
A member of the Team first needs to authorize it.
📦 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! 🙌