Skip to content

Commit 99b9ebd

Browse files
committed
style: update button styles for accessibility
1 parent 3c75cac commit 99b9ebd

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

src/embedded/components/IterableEmbeddedBanner/IterableEmbeddedBanner.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const styles = StyleSheet.create({
3434
},
3535
buttonText: {
3636
fontSize: 14,
37-
fontWeight: '400',
37+
fontWeight: '700',
3838
lineHeight: 20,
3939
paddingHorizontal: 12,
4040
paddingVertical: 8,

src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.styles.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ export const styles = StyleSheet.create({
1818
width: '100%',
1919
},
2020
button: {
21+
alignItems: 'center',
22+
alignSelf: 'flex-start',
2123
borderRadius: 32,
24+
flexShrink: 1,
2225
gap: 8,
26+
justifyContent: 'center',
27+
maxWidth: '100%',
28+
minWidth: 0,
2329
paddingHorizontal: 12,
2430
paddingVertical: 8,
2531
},
@@ -28,13 +34,17 @@ export const styles = StyleSheet.create({
2834
alignSelf: 'stretch',
2935
display: 'flex',
3036
flexDirection: 'row',
37+
flexWrap: 'wrap',
3138
gap: 12,
3239
width: '100%',
3340
},
3441
buttonText: {
42+
flexShrink: 1,
3543
fontSize: 14,
3644
fontWeight: '700',
3745
lineHeight: 20,
46+
maxWidth: '100%',
47+
textAlign: 'center',
3848
},
3949
container: {
4050
alignItems: 'flex-start',

src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export const IterableEmbeddedNotification = ({
9898
key={button.id}
9999
>
100100
<Text
101+
ellipsizeMode="tail"
102+
numberOfLines={1}
101103
style={[
102104
styles.buttonText,
103105
{ color: textColor } as TextStyle,

0 commit comments

Comments
 (0)