-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessibility - Teacher - Calendar - Font size on Edit Event screen #3061
Accessibility - Teacher - Calendar - Font size on Edit Event screen #3061
Conversation
affects: Student, Teacher release note: None test plan: No text should get cut off on EditCalendarEventScreen when font size is increased to the maximum.
Affected Apps: Student, Teacher❌ XCTest failed: CoreTests/WKHTTPCookieStoreExtensionsTests/testDeleteAllCookies
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code +1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA +1
|
||
if date != nil { | ||
datePicker | ||
if dynamicTypeSize > .accessibility3 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This limit seems arbitrary to me, but not sure whether is there a proper way to check when would we extend the screen size.
What happens when we have the clear button?
Not sure this works here, but may worth to look into ViewThatFits.
If that fails, what do you think about another way, to add a geometry: GeometryProxy
to DatePickerCell
and add .frame(maxWidth: geometry.size.width)
in there, in place of the .lineLimit(0)
.
It's less pretty but maybe less hacky as well. The label may disappear in certain conditions, so this is also not a perfect solution.
We could discuss it briefly with the others on Monday.
Please update the other screens which uses this cell as well (EditCalendarToDoScreen
, EditCustomFrequencyScreen
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should definitely check ViewThatFits
since that's the way Apple proposes for such use cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
affects: Student, Teacher
release note: None
test plan: No text should get cut off on EditCalendarEventScreen when font size is increased to the maximum.
I'm not quite pleased with the solution so any suggestion is appreciated.
Before:
Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2025-01-14.at.12.42.53.mp4
After:
Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2025-01-14.at.12.39.56.mp4
Checklist