Skip to content

Conversation

@Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Nov 13, 2024

This regressed as a result of changes to support rounded blur corners for iOS in the latest NotificationCard updates (66b4bdd).

image

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Copy link
Contributor

@samholmes samholmes left a 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.

@Jon-edge Jon-edge force-pushed the jon/fix/ios-rounded-menu-title branch 5 times, most recently from 4124210 to 1cbbce3 Compare November 13, 2024 20:28
Copy link
Contributor

@samholmes samholmes left a 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
Copy link
Contributor

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.

@Jon-edge Jon-edge force-pushed the jon/fix/ios-rounded-menu-title branch from 1cbbce3 to addcbe3 Compare November 13, 2024 22:47
Copy link
Contributor

@samholmes samholmes left a 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.

@Jon-edge
Copy link
Collaborator Author

Jon-edge commented Nov 13, 2024

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 HeaderFooterBlur or something.

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.
@Jon-edge Jon-edge force-pushed the jon/fix/ios-rounded-menu-title branch from 8cd2d90 to a16c11d Compare November 13, 2024 23:14
@Jon-edge Jon-edge enabled auto-merge November 13, 2024 23:14
@Jon-edge Jon-edge merged commit 25922b5 into develop Nov 13, 2024
@Jon-edge Jon-edge deleted the jon/fix/ios-rounded-menu-title branch November 13, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants