-
Notifications
You must be signed in to change notification settings - Fork 31
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
Bump androidx.compose:compose-bom from 2024.08.00 to 2024.09.01 #2089
Bump androidx.compose:compose-bom from 2024.08.00 to 2024.09.01 #2089
Conversation
Bumps androidx.compose:compose-bom from 2024.08.00 to 2024.09.01. --- updated-dependencies: - dependency-name: androidx.compose:compose-bom dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Generated by 🚫 Danger Kotlin against d845075 |
@@ -119,7 +119,7 @@ fun IconsStory(modifier: Modifier = Modifier) { | |||
contentAlignment = Alignment.Center, | |||
modifier = Modifier | |||
.border(Dp.Hairline, BpkTheme.colors.line) | |||
.clickable { | |||
.clickableWithRipple { |
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.
renamed this function and made it public, so we don't need to maintain two versions (one in the app and one in backpack)
@@ -51,18 +51,6 @@ class BpkBottomSheetState internal constructor( | |||
internal val delegate: SheetState, | |||
) { | |||
|
|||
constructor( |
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 only ever use this with the remember function. there was a breaking change with a new density param, but as we're only using it with the remember function anyways might as well remove it instead
@@ -53,18 +53,6 @@ class BpkModalBottomSheetState internal constructor( | |||
internal val delegate: SheetState, | |||
) { | |||
|
|||
constructor( |
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.
same here
@@ -74,7 +75,12 @@ internal fun BpkButtonImpl( | |||
) { | |||
val clickable = enabled && !loading | |||
|
|||
CompositionLocalProvider(LocalRippleTheme provides ButtonRippleTheme(type.rippleColor())) { | |||
CompositionLocalProvider( | |||
LocalRippleConfiguration provides RippleConfiguration( |
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.
ripple theme is gone - there's now RippleConfiguration
@@ -153,7 +154,7 @@ private fun BpkCheckboxImpl( | |||
) { | |||
// our design system isn't designed with the minimum touch target in mind at the moment. | |||
// Disable the enforcement to avoid the extra padding | |||
CompositionLocalProvider(LocalMinimumTouchTargetEnforcement provides false) { | |||
CompositionLocalProvider(LocalMinimumInteractiveComponentSize provides Dp.Unspecified) { |
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 has also been changed
@@ -85,7 +85,7 @@ internal fun BpkChipImpl( | |||
selected = selected, | |||
enabled = enabled, | |||
interactionSource = interactionSource, | |||
indication = rememberRipple(), | |||
indication = bpkRipple(), |
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.
added a new helper function for using the ripple directly
animationSpec = interactiveBackgroundAnimationSpec, | ||
label = "background scale", | ||
) | ||
override fun hashCode(): Int = -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.
the example had that?! i am not sure when this is actually used and has an impact. but it was working as expected 🤷♀️
override fun equals(other: Any?) = other === this | ||
} | ||
|
||
private class InteractiveBackgroundIndicationNode(private val interactionSource: InteractionSource) : Modifier.Node(), DrawModifierNode { |
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.
migrated these to the new api
// It will be added in Compose 1.7, so we'll migrate it after that | ||
@Suppress("ModifierComposed") | ||
internal fun Modifier.clickable( | ||
@Suppress("ModifierComposable") |
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.
the main compose docs now mention it's better to use a composable function than the composed API. it's not really feasible to move to the node api for this as the whole clickable node is internal
A newer version of androidx.compose:compose-bom exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged. |
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.
looks good after the changes on the spinner and progressbar 😄
Q: don't we have screenshot tests for progressbar or is that they are pixel perfect to the previous version?
Yeah they're exactly the same. The main changes in the screenshots seem to be some shadow behaviour changes (and the progress spinner but that one's fine), so anything without shadows didn't change. |
Bumps androidx.compose:compose-bom from 2024.08.00 to 2024.09.01.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)