Update styling and accessibility, refine product and shopping list functionalities

This commit is contained in:
2026-10-16 15:49:22 +02:00
parent 6938afb26c
commit defc1fbc13
24 changed files with 484 additions and 162 deletions
+20 -4
View File
@@ -20,7 +20,10 @@ export default function ProductCard({ product, rating, onPress }) {
</Text>
<Text style={styles.source}>{sourceLabel(product.dataSource)}</Text>
</View>
</View>
<View style={styles.footer}>
{rating ? <ProductScoreBadge status={rating.overallStatus} score={rating.overallScore} /> : null}
<Text style={styles.openLabel}>Details ansehen ›</Text>
</View>
</Pressable>
);
@@ -40,7 +43,7 @@ const styles = StyleSheet.create({
card: {
backgroundColor: colors.surface,
borderColor: colors.border,
borderRadius: 8,
borderRadius: 18,
borderWidth: 1,
gap: 10,
padding: 16
@@ -50,12 +53,25 @@ const styles = StyleSheet.create({
flexDirection: 'row',
gap: 12
},
footer: {
alignItems: 'center',
borderTopColor: colors.border,
borderTopWidth: 1,
flexDirection: 'row',
justifyContent: 'space-between',
paddingTop: 11
},
openLabel: {
color: colors.primary,
fontSize: 13,
fontWeight: '800'
},
copy: {
flex: 1
},
name: {
color: colors.text,
fontSize: 17,
fontSize: 16,
fontWeight: '800'
},
meta: {
@@ -67,11 +83,11 @@ const styles = StyleSheet.create({
color: colors.muted,
fontSize: 13,
lineHeight: 18,
marginTop: 8
marginTop: 5
},
source: {
alignSelf: 'flex-start',
backgroundColor: '#eef3ef',
backgroundColor: colors.surfaceTint,
borderRadius: 8,
color: colors.primaryDark,
fontSize: 12,