-
Notifications
You must be signed in to change notification settings - Fork 279
Fix incorrect rounded corners on iOS #5357
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
Conversation
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.
Change the commit message:
Apply rounded corners only to NotificationCard
Rounded corners were applied to all implementations of BlurBackground
which caused the header and footer to have rounded corners. This was
never apart of the design for the header and footer and accidentally
slipped through as a bug because it never manifest itself in Android;
it only appeared in iOS. Nonetheless, this fix will remove the rounded
corner styles in the BlurBackground component by default, and provide a
parameter to enable it for NotificationCard.
4124210 to
1cbbce3
Compare
samholmes
left a comment
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.
Commit message comment still applies (or something like it)
| export const BlurBackground = (props: { | ||
| /** If the parent requires rounded corners, this prop must be set true in | ||
| * order to ensure parity between iOS/Android */ | ||
| noRoundedCorners?: boolean |
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.
Let's go with rounded as an option instead of rounded by default. Or add a RoundedBlurBackground element which can be used in rounded components.
1cbbce3 to
addcbe3
Compare
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.
Approved. Though I wouldn't make the same assumption that all components that would want a blurred background will be rounded with some specific radius. We'll see if this assumption holds up overtime.
|
If that assumption fails in the future, then we just need to update the component's comment. I specifically made a generalized component name instead of naming Regarding specific radius - that's a theme thing. I would really dislike it if we used varying radii across the app. |
Regressed as a result of the latest `NotificationCard` updates (66b4bdd) The above commit made changes to support rounded borders for the `NotificationCard` by changing `BlurBackground` for all callers. The callers responsible for the header/footer also use `BlurBackground,` but require a non-rounded variant. Due to the parity difference in iOS and Android blur styling, this regression was only observable on iOS.
8cd2d90 to
a16c11d
Compare
This regressed as a result of changes to support rounded blur corners for iOS in the latest
NotificationCardupdates (66b4bdd).CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: