-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
feat(checkbox): update styles to iOS 17 specs #28729
Conversation
$alert-ios-checkbox-icon-top: calc($alert-ios-checkbox-size / 8) !default; | ||
|
||
/// @prop - Start of the icon in the checkbox alert | ||
$alert-ios-checkbox-icon-start: calc($alert-ios-checkbox-size / 3 + 1px) !default; | ||
$alert-ios-checkbox-icon-start: calc($alert-ios-checkbox-size / 3) !default; |
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.
These changes were made to align the icon to the center.
Switching to draft to compare values with native. |
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.
@@ -16,6 +16,9 @@ | |||
|
|||
// Size | |||
--size: #{$checkbox-ios-icon-size}; | |||
|
|||
// Checkmark width | |||
--checkmark-width: #{$checkbox-ios-icon-checkmark-width}; |
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.
@@ -20,12 +20,10 @@ | |||
* @prop --transition: Transition of the checkbox icon | |||
* | |||
* @prop --checkmark-color: Color of the checkbox checkmark when checked | |||
* @prop --checkmark-width: Stroke width of the checkbox checkmark |
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.
Sorry I did not mean to remove the @prop
here. This will remove it from the documentation. I just meant the value below.
Issue number: internal
What is the current behavior?
iOS checkbox does not align with the styles on iOS 17.
What is the new behavior?
iOS checkbox aligns with the styles on iOS 17.
Does this introduce a breaking change?
Other information
I noticed that the checkbox width was also different. Based on some comparisons,
1.5px
was the most accurate.