File tree Expand file tree Collapse file tree
patterns/src/main/java/uk/gov/android/ui/patterns/leftalignedscreen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ import uk.gov.android.ui.componentsv2.heading.GdsHeadingAlignment
3434import uk.gov.android.ui.componentsv2.supportingtext.GdsSupportingText
3535import uk.gov.android.ui.patterns.leftalignedscreen.LeftAlignedScreenTestTag.BODY_LAZY_COLUMN_TEST_TAG
3636import uk.gov.android.ui.patterns.utils.clearListSemanticsForTalkBack
37+ import uk.gov.android.ui.patterns.utils.scroll.bringIntoView
3738import uk.gov.android.ui.theme.m3.GdsTheme
3839import uk.gov.android.ui.theme.spacingDouble
39- import uk.gov.android.ui.patterns.utils.scroll.bringIntoView as bringIntoViewV2
4040
4141private const val ONE_THIRD = 1f / 3f
4242private const val FONT_SCALE_DOUBLE = 2f
@@ -325,7 +325,7 @@ private fun MainContent(
325325 val columnModifier = if (forceScroll) {
326326 Modifier
327327 .fillMaxSize()
328- .bringIntoViewV2 (scrollState)
328+ .bringIntoView (scrollState)
329329 } else {
330330 Modifier .fillMaxSize()
331331 }
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.PaddingValues
66import androidx.compose.foundation.layout.fillMaxWidth
77import androidx.compose.foundation.layout.padding
88import androidx.compose.foundation.lazy.LazyListScope
9- import androidx.compose.foundation.lazy.LazyListState
109import androidx.compose.material3.HorizontalDivider
1110import androidx.compose.material3.MaterialTheme
1211import androidx.compose.material3.MaterialTheme.colorScheme
@@ -41,7 +40,6 @@ import uk.gov.android.ui.componentsv2.row.RowList
4140import uk.gov.android.ui.componentsv2.supportingtext.GdsSupportingText
4241import uk.gov.android.ui.componentsv2.warning.GdsWarningText
4342import uk.gov.android.ui.theme.dividerThickness
44- import uk.gov.android.ui.patterns.utils.scroll.bringIntoView as bringIntoViewV2
4543
4644internal data class LeftAlignedScreenContentV2 (
4745 val title : String ,
@@ -338,13 +336,3 @@ private fun LazyListScope.toAnnotatedText(
338336 )
339337 }
340338}
341-
342- /* *
343- * Adds a downwards and upwards scroll when a keyboard down or up arrow is pressed
344- *
345- * @param scrollState [LazyListState] represents the list state
346- * @return augmented [Modifier]
347- */
348- @Deprecated(" Use uk.gov.android.ui.patterns.utils.scroll.bringIntoView" )
349- @Composable
350- fun Modifier.bringIntoView (scrollState : LazyListState ): Modifier = this .bringIntoViewV2(scrollState)
You can’t perform that action at this time.
0 commit comments