Bug 1833493 - Update Tab List Item title and url text style

In order to adhere to the new UI/UX type scale for Android, the
compose `TabListItem` Display title and url text style have been set
to body1 and body2 respectively. The xml layout letter spacing
for the title and url have been modified as well.
fenix/119.0
DreVla 10 months ago committed by mergify[bot]
parent a2e2aedf91
commit 43aef9067a

@ -41,7 +41,6 @@ import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.semantics.testTag
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import mozilla.components.browser.state.state.TabSessionState
import mozilla.components.browser.state.state.createTab
import mozilla.components.browser.thumbnails.storage.ThumbnailStorage
@ -166,8 +165,7 @@ fun TabListItem(
Text(
text = tab.toDisplayTitle().take(MAX_URI_LENGTH),
color = FirefoxTheme.colors.textPrimary,
fontSize = 16.sp,
letterSpacing = 0.0.sp,
style = FirefoxTheme.typography.body1,
overflow = TextOverflow.Ellipsis,
maxLines = 2,
)
@ -175,8 +173,7 @@ fun TabListItem(
Text(
text = tab.content.url.toShortUrl(),
color = FirefoxTheme.colors.textSecondary,
fontSize = 14.sp,
letterSpacing = 0.0.sp,
style = FirefoxTheme.typography.body2,
overflow = TextOverflow.Ellipsis,
maxLines = 1,
)

@ -59,6 +59,7 @@
android:ellipsize="end"
android:textColor="@color/fx_mobile_text_color_primary"
android:textSize="16sp"
android:letterSpacing="0.03"
android:maxLines="2"
tools:text="Firefox"
app:layout_constraintEnd_toStartOf="@id/mozac_browser_tabstray_close"
@ -78,6 +79,7 @@
android:lines="1"
android:textColor="@color/fx_mobile_text_color_secondary"
android:textSize="14sp"
android:letterSpacing="0.035"
tools:text="firefox.com"
app:layout_constraintEnd_toStartOf="@id/mozac_browser_tabstray_close"
app:layout_constraintStart_toEndOf="@id/mozac_browser_tabstray_card"

Loading…
Cancel
Save