@ -40,7 +40,11 @@ import androidx.compose.ui.graphics.asImageBitmap
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.Role
import androidx.compose.ui.semantics.SemanticsPropertyReceiver
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.onClick
import androidx.compose.ui.semantics.role
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.tooling.preview.Preview
@ -126,7 +130,22 @@ private fun WallpaperGroupHeading(
style = FirefoxTheme . typography . subtitle2 ,
style = FirefoxTheme . typography . subtitle2 ,
)
)
} else {
} else {
Column {
val label = stringResource ( id = R . string . a11y _action _label _wallpaper _collection _learn _more )
val headingSemantics : SemanticsPropertyReceiver . ( ) -> Unit =
if ( collection . learnMoreUrl . isNullOrEmpty ( ) ) {
{ }
} else {
{
role = Role . Button
onClick ( label = label ) {
onLearnMoreClick ( collection . learnMoreUrl , collection . name )
false
}
}
}
Column (
modifier = Modifier . semantics ( mergeDescendants = true , properties = headingSemantics ) ,
) {
Text (
Text (
text = stringResource ( R . string . wallpaper _limited _edition _title ) ,
text = stringResource ( R . string . wallpaper _limited _edition _title ) ,
color = FirefoxTheme . colors . textSecondary ,
color = FirefoxTheme . colors . textSecondary ,