diff --git a/src/components/Appbar/AppbarContent.tsx b/src/components/Appbar/AppbarContent.tsx index 92fae42e7d..962262d095 100644 --- a/src/components/Appbar/AppbarContent.tsx +++ b/src/components/Appbar/AppbarContent.tsx @@ -243,7 +243,7 @@ AppbarContent.displayName = 'Appbar.Content'; const styles = StyleSheet.create({ container: { flex: 1, - marginLeft: 12, + marginStart: 12, }, centerAligned: { flex: 1, diff --git a/src/components/Drawer/DrawerSection.tsx b/src/components/Drawer/DrawerSection.tsx index 55773aac81..1ee0d6cc13 100644 --- a/src/components/Drawer/DrawerSection.tsx +++ b/src/components/Drawer/DrawerSection.tsx @@ -87,7 +87,7 @@ const DrawerSection = ({ style={[ { color: titleColor, - marginLeft: titleMargin, + marginStart: titleMargin, ...font, }, ]} diff --git a/src/components/List/ListItem.tsx b/src/components/List/ListItem.tsx index 659abf9774..5641a0419b 100644 --- a/src/components/List/ListItem.tsx +++ b/src/components/List/ListItem.tsx @@ -277,7 +277,7 @@ const styles = StyleSheet.create({ paddingRight: 24, }, indent: { - paddingLeft: 40, + paddingStart: 40, }, row: { width: '100%', @@ -291,7 +291,7 @@ const styles = StyleSheet.create({ fontSize: 14, }, item: { - paddingLeft: 16, + paddingStart: 16, }, content: { flexShrink: 1, diff --git a/src/components/Menu/MenuItem.tsx b/src/components/Menu/MenuItem.tsx index b3707e20db..87ab2c4427 100644 --- a/src/components/Menu/MenuItem.tsx +++ b/src/components/Menu/MenuItem.tsx @@ -259,10 +259,10 @@ const styles = StyleSheet.create({ justifyContent: 'center', }, md3LeadingIcon: { - marginLeft: 12, + marginStart: 12, }, md3WithoutLeadingIcon: { - marginLeft: 4, + marginStart: 4, }, }); diff --git a/src/components/TextInput/styles.ts b/src/components/TextInput/styles.ts index b45ab98e00..5d4267ccfa 100644 --- a/src/components/TextInput/styles.ts +++ b/src/components/TextInput/styles.ts @@ -46,7 +46,6 @@ export const styles = StyleSheet.create({ paddingHorizontal: TEXT_INPUT_INPUT_WRAPPER_PADDING_HORIZONTAL, fontSize: SUPPORTING_TEXT_FONT_SIZE, fontWeight: bodySmall.fontWeight, - textAlign: 'left', }, counter: { marginTop: SUPPORTING_TEXT_MARGIN_TOP, diff --git a/src/components/__tests__/__snapshots__/ListItem.test.tsx.snap b/src/components/__tests__/__snapshots__/ListItem.test.tsx.snap index d4195e806c..135e32b45e 100644 --- a/src/components/__tests__/__snapshots__/ListItem.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/ListItem.test.tsx.snap @@ -33,7 +33,7 @@ exports[`renders list item with custom content style 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -147,7 +147,7 @@ exports[`renders list item with custom description 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -508,7 +508,7 @@ exports[`renders list item with custom title and description styles 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -627,7 +627,7 @@ exports[`renders list item with left and right items 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -832,7 +832,7 @@ exports[`renders list item with left item 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -912,7 +912,7 @@ exports[`renders list item with right item 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -995,7 +995,7 @@ exports[`renders list item with title and description 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -1107,7 +1107,7 @@ exports[`renders with a description with typeof number 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, diff --git a/src/components/__tests__/__snapshots__/Menu.test.tsx.snap b/src/components/__tests__/__snapshots__/Menu.test.tsx.snap index f08083bb2c..5b839ba860 100644 --- a/src/components/__tests__/__snapshots__/Menu.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/Menu.test.tsx.snap @@ -703,7 +703,7 @@ exports[`renders visible menu 1`] = ` "minWidth": 100, }, { - "marginLeft": 4, + "marginStart": 4, }, undefined, ] @@ -825,7 +825,7 @@ exports[`renders visible menu 1`] = ` "minWidth": 100, }, { - "marginLeft": 4, + "marginStart": 4, }, undefined, ] @@ -1374,7 +1374,7 @@ exports[`respects anchorPosition bottom 1`] = ` "minWidth": 100, }, { - "marginLeft": 4, + "marginStart": 4, }, undefined, ] @@ -1496,7 +1496,7 @@ exports[`respects anchorPosition bottom 1`] = ` "minWidth": 100, }, { - "marginLeft": 4, + "marginStart": 4, }, undefined, ] @@ -2045,7 +2045,7 @@ exports[`uses the default anchorPosition of top 1`] = ` "minWidth": 100, }, { - "marginLeft": 4, + "marginStart": 4, }, undefined, ] @@ -2167,7 +2167,7 @@ exports[`uses the default anchorPosition of top 1`] = ` "minWidth": 100, }, { - "marginLeft": 4, + "marginStart": 4, }, undefined, ]