Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ fun SingleSelectChipGroupStoryWrap(modifier: Modifier = Modifier) =
@ChipGroupComponent
@ComposeStory("Multi Select Rail")
fun MultiSelectChipGroupStoryRail(modifier: Modifier = Modifier) {
val context = LocalContext.current
val floatingNotification = LocalFloatingNotification.current
val scope = rememberCoroutineScope()
val stickyChipActionMessage = stringResource(R.string.sticky_chip_action)
ChipGroupDemo(
modifier,
) { style ->
Expand All @@ -100,7 +100,7 @@ fun MultiSelectChipGroupStoryRail(modifier: Modifier = Modifier) {
icon = BpkIcon.Filter,
) {
scope.launch {
floatingNotification.show(context.getString(R.string.sticky_chip_action))
floatingNotification.show(stickyChipActionMessage)
}
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalResources
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import net.skyscanner.backpack.compose.rating.BpkRating
Expand Down Expand Up @@ -191,11 +191,11 @@ internal fun BpkRatingLargeCustomContentNoSubtitleSample(modifier: Modifier = Mo
private fun CustomContent(
modifier: Modifier = Modifier,
) {
val context = LocalContext.current
val resources = LocalResources.current
BpkStarRating(
rating = RatingValue,
contentDescription = { _, max ->
context.getString(R.string.star_rating_accessibility_status, RatingValue, max)
resources.getString(R.string.star_rating_accessibility_status, RatingValue, max)
},
modifier = modifier,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.rememberScrollState
import androidx.compose.material3.DropdownMenuItem
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.ExposedDropdownMenuAnchorType
import androidx.compose.material3.ExposedDropdownMenuBox
import androidx.compose.material3.ExposedDropdownMenuDefaults
import androidx.compose.material3.MenuAnchorType
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
Expand Down Expand Up @@ -79,7 +79,7 @@ internal fun BpkSelectImpl(
onExpandedChange = { expanded = !expanded },
) {
BpkTextFieldImpl(
modifier = modifier.menuAnchor(MenuAnchorType.PrimaryNotEditable),
modifier = modifier.menuAnchor(ExposedDropdownMenuAnchorType.PrimaryNotEditable),
value = selectText,
onValueChange = {},
type = BpkTextFieldType.Select,
Expand All @@ -96,7 +96,7 @@ internal fun BpkSelectImpl(
.applyIf(dropDownWidth == BpkDropDownWidth.MaxWidth) {
fillMaxWidth()
},
matchTextFieldWidth = dropDownWidth == BpkDropDownWidth.MatchSelectWidth,
matchAnchorWidth = dropDownWidth == BpkDropDownWidth.MatchSelectWidth,
onDismissRequest = {
expanded = false
focusManager.clearFocus()
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ kotlin-compilerTestingKsp = { module = "dev.zacsweers.kctfork:ksp", version.ref
lint-lint = { module = "com.android.tools.lint:lint", version.ref = "lint" }
lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "lint" }

compose-bom = { group = "androidx.compose", name = "compose-bom", version = "2025.11.01" }
compose-bom = { group = "androidx.compose", name = "compose-bom", version = "2025.12.01" }
compose-ui = { group = "androidx.compose.ui", name = "ui" }
compose-foundation = { group = "androidx.compose.foundation", name = "foundation" }
compose-runtime = { group = "androidx.compose.runtime", name = "runtime" }
Expand Down