diff --git a/docs/6.x/docs/guides/rtl.md b/docs/6.x/docs/guides/rtl.md index 36144946d4..8fe17813ba 100644 --- a/docs/6.x/docs/guides/rtl.md +++ b/docs/6.x/docs/guides/rtl.md @@ -28,6 +28,12 @@ The `direction` prop of `PaperProvider` informs React Native Paper about the tex On the web, `Text` aligns to the start of the writing direction, so it aligns right when `direction` is `rtl`. On Android and iOS, React Native already aligns `left` text to the right in a right-to-left layout. A `textAlign` in `style` still wins. +:::note +Paper's components use logical spacing (`marginStart`, `paddingStart`, `paddingEnd`) so they mirror in RTL. React Native Web resolves these from its own locale context, which comes from a `dir` prop or `LocaleProvider`, not from the `dir` attribute on `html`. On the Web, wrap the app (or the RTL part of it) in `LocaleProvider` for the spacing to mirror. + +On Android and iOS, `paddingStart`/`marginStart` take precedence over `paddingLeft`/`marginLeft` in Yoga. To override the spacing of a Paper component, use the logical props (for example `contentStyle={{ paddingStart: 80 }}`) instead of the physical ones. +::: + ## Setting direction for the whole app Pass the `direction` prop to `PaperProvider`. Defaults to `'rtl'` when `I18nManager.getConstants().isRTL` returns `true`, otherwise `'ltr'`. 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/List/ListAccordion.tsx b/src/components/List/ListAccordion.tsx index a2acd203a6..fcb4029030 100644 --- a/src/components/List/ListAccordion.tsx +++ b/src/components/List/ListAccordion.tsx @@ -505,11 +505,11 @@ const styles = StyleSheet.create({ flexDirection: 'row', }, contentItem: { - paddingLeft: ListTokens.leadingSpace, + paddingStart: ListTokens.leadingSpace, }, trailingItem: { alignSelf: 'center', - paddingLeft: ListTokens.leadingSpace, + paddingStart: ListTokens.leadingSpace, }, transitioningClip: { overflow: 'hidden', diff --git a/src/components/List/ListImage.tsx b/src/components/List/ListImage.tsx index 5c7ce1689c..005640743f 100644 --- a/src/components/List/ListImage.tsx +++ b/src/components/List/ListImage.tsx @@ -84,10 +84,10 @@ const styles = StyleSheet.create({ video: { width: 114, height: 64, - marginLeft: 0, + marginStart: 0, }, videoInLeadingSlot: { - marginLeft: -ListTokens.leadingSpace, + marginStart: -ListTokens.leadingSpace, }, }); diff --git a/src/components/List/ListItem.tsx b/src/components/List/ListItem.tsx index d065221e2b..de7dd5d7e6 100644 --- a/src/components/List/ListItem.tsx +++ b/src/components/List/ListItem.tsx @@ -367,14 +367,14 @@ ListItem.displayName = 'List.Item'; const styles = StyleSheet.create({ indent: { - paddingLeft: 40, + paddingStart: 40, }, row: { width: '100%', flexDirection: 'row', }, item: { - paddingLeft: ListTokens.leadingSpace, + paddingStart: ListTokens.leadingSpace, }, content: { flexShrink: 1, diff --git a/src/components/List/utils.ts b/src/components/List/utils.ts index 4ecabedcf6..8b20fd35dd 100644 --- a/src/components/List/utils.ts +++ b/src/components/List/utils.ts @@ -28,8 +28,8 @@ export type ListChildProps = { }; export type Style = { - marginLeft?: number; - marginRight?: number; + marginStart?: number; + marginEnd?: number; marginVertical?: number; alignSelf?: 'flex-start' | 'center'; }; @@ -39,8 +39,8 @@ export const getAccessoryStyles = ( description: Description ): Style => { const style: Style = { - marginLeft: ListTokens.leadingSpace, - marginRight: 0, + marginStart: ListTokens.leadingSpace, + marginEnd: 0, alignSelf: alignToTop ? 'flex-start' : 'center', }; @@ -176,7 +176,7 @@ export const getRowContentStyle = (disabled?: boolean) => const rowStyles = StyleSheet.create({ container: { paddingVertical: ListTokens.verticalPadding, - paddingRight: ListTokens.trailingSpace, + paddingEnd: ListTokens.trailingSpace, justifyContent: 'center', }, containerOneLine: { 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..23004261d5 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, @@ -54,7 +53,6 @@ export const styles = StyleSheet.create({ paddingHorizontal: TEXT_INPUT_INPUT_WRAPPER_PADDING_HORIZONTAL, fontSize: SUPPORTING_TEXT_FONT_SIZE, fontWeight: bodySmall.fontWeight, - textAlign: 'right', }, trailingAccessory: { width: ACCESSORY_SIZE, diff --git a/src/components/__tests__/Appbar/__snapshots__/Appbar.test.tsx.snap b/src/components/__tests__/Appbar/__snapshots__/Appbar.test.tsx.snap index e037ccad82..5620c16d21 100644 --- a/src/components/__tests__/Appbar/__snapshots__/Appbar.test.tsx.snap +++ b/src/components/__tests__/Appbar/__snapshots__/Appbar.test.tsx.snap @@ -681,7 +681,7 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A [ { "flex": 1, - "marginLeft": 12, + "marginStart": 12, }, undefined, ] diff --git a/src/components/__tests__/ListAccordion.test.tsx b/src/components/__tests__/ListAccordion.test.tsx index 385d10cc45..6965b8248d 100644 --- a/src/components/__tests__/ListAccordion.test.tsx +++ b/src/components/__tests__/ListAccordion.test.tsx @@ -109,7 +109,7 @@ it('indents expanded accordion children without their own left/right when the ac ); expect(screen.getByTestId('accordion-child')).toHaveStyle({ - paddingLeft: 40, + paddingStart: 40, }); }); diff --git a/src/components/__tests__/ListItem.test.tsx b/src/components/__tests__/ListItem.test.tsx index 3e817d8dae..8f2347e056 100644 --- a/src/components/__tests__/ListItem.test.tsx +++ b/src/components/__tests__/ListItem.test.tsx @@ -494,10 +494,10 @@ it('puts a video thumbnail in the leading slot flush with the start edge', async // The slot adds 16dp of leading space and the video takes it back expect(screen.getByTestId('video-thumbnail').parent).toHaveStyle({ - marginLeft: 16, + marginStart: 16, }); expect(screen.getByTestId('video-thumbnail')).toHaveStyle({ - marginLeft: -16, + marginStart: -16, }); }); @@ -516,7 +516,7 @@ it('keeps a video thumbnail from the left render prop flush with the start edge' /> ); - expect(screen.getByTestId('video-thumbnail')).toHaveStyle({ marginLeft: 0 }); + expect(screen.getByTestId('video-thumbnail')).toHaveStyle({ marginStart: 0 }); }); it.each([ diff --git a/src/components/__tests__/ListUtils.test.tsx b/src/components/__tests__/ListUtils.test.tsx index 1ffd2e4231..2d58bd5b20 100644 --- a/src/components/__tests__/ListUtils.test.tsx +++ b/src/components/__tests__/ListUtils.test.tsx @@ -5,8 +5,8 @@ import { getAccessoryStyles, getListColors } from '../List/utils'; import Text from '../Typography/Text'; const accessoryStyle = { - marginLeft: 16, - marginRight: 0, + marginStart: 16, + marginEnd: 0, alignSelf: 'center', }; diff --git a/src/components/__tests__/__snapshots__/ListAccordion.test.tsx.snap b/src/components/__tests__/__snapshots__/ListAccordion.test.tsx.snap index 6c7233858d..077ccba25a 100644 --- a/src/components/__tests__/__snapshots__/ListAccordion.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/ListAccordion.test.tsx.snap @@ -49,7 +49,7 @@ exports[`renders expanded accordion 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -78,7 +78,7 @@ exports[`renders expanded accordion 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flex": 1, @@ -125,7 +125,7 @@ exports[`renders expanded accordion 1`] = ` style={ { "alignSelf": "center", - "paddingLeft": 16, + "paddingStart": 16, } } > @@ -214,7 +214,7 @@ exports[`renders expanded accordion 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -247,7 +247,7 @@ exports[`renders expanded accordion 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -347,7 +347,7 @@ exports[`renders list accordion with children 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -382,8 +382,8 @@ exports[`renders list accordion with children 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -423,7 +423,7 @@ exports[`renders list accordion with children 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flex": 1, @@ -470,7 +470,7 @@ exports[`renders list accordion with children 1`] = ` style={ { "alignSelf": "center", - "paddingLeft": 16, + "paddingStart": 16, } } > @@ -574,7 +574,7 @@ exports[`renders list accordion with custom title and description styles 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -603,7 +603,7 @@ exports[`renders list accordion with custom title and description styles 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flex": 1, @@ -687,7 +687,7 @@ exports[`renders list accordion with custom title and description styles 1`] = ` style={ { "alignSelf": "center", - "paddingLeft": 16, + "paddingStart": 16, } } > @@ -791,7 +791,7 @@ exports[`renders list accordion with left items 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -826,8 +826,8 @@ exports[`renders list accordion with left items 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -867,7 +867,7 @@ exports[`renders list accordion with left items 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flex": 1, @@ -914,7 +914,7 @@ exports[`renders list accordion with left items 1`] = ` style={ { "alignSelf": "center", - "paddingLeft": 16, + "paddingStart": 16, } } > @@ -1018,7 +1018,7 @@ exports[`renders multiline list accordion 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -1047,7 +1047,7 @@ exports[`renders multiline list accordion 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flex": 1, @@ -1127,7 +1127,7 @@ exports[`renders multiline list accordion 1`] = ` style={ { "alignSelf": "center", - "paddingLeft": 16, + "paddingStart": 16, } } > diff --git a/src/components/__tests__/__snapshots__/ListImage.test.tsx.snap b/src/components/__tests__/__snapshots__/ListImage.test.tsx.snap index 08473d8ed5..0b4b12ac4d 100644 --- a/src/components/__tests__/__snapshots__/ListImage.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/ListImage.test.tsx.snap @@ -33,7 +33,7 @@ exports[`renders ListImage with \`video\` variant 1`] = ` undefined, { "height": 64, - "marginLeft": 0, + "marginStart": 0, "width": 114, }, { diff --git a/src/components/__tests__/__snapshots__/ListItem.test.tsx.snap b/src/components/__tests__/__snapshots__/ListItem.test.tsx.snap index f83fda793b..af233100f0 100644 --- a/src/components/__tests__/__snapshots__/ListItem.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/ListItem.test.tsx.snap @@ -10,7 +10,7 @@ exports[`renders list item with custom content style 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -44,7 +44,7 @@ exports[`renders list item with custom content style 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -137,7 +137,7 @@ exports[`renders list item with custom description 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -171,7 +171,7 @@ exports[`renders list item with custom description 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -510,7 +510,7 @@ exports[`renders list item with custom title and description styles 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -544,7 +544,7 @@ exports[`renders list item with custom title and description styles 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -639,7 +639,7 @@ exports[`renders list item with left and right items 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -676,7 +676,7 @@ exports[`renders list item with left and right items 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -763,8 +763,8 @@ exports[`renders list item with left and right items 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, }, ] } @@ -813,7 +813,7 @@ exports[`renders list item with left item 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -853,8 +853,8 @@ exports[`renders list item with left item 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -894,7 +894,7 @@ exports[`renders list item with left item 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -952,7 +952,7 @@ exports[`renders list item with right item 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -986,7 +986,7 @@ exports[`renders list item with right item 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -1047,7 +1047,7 @@ exports[`renders list item with title and description 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -1081,7 +1081,7 @@ exports[`renders list item with title and description 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -1172,7 +1172,7 @@ exports[`renders with a description with typeof number 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -1206,7 +1206,7 @@ exports[`renders with a description with typeof number 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, diff --git a/src/components/__tests__/__snapshots__/ListSection.test.tsx.snap b/src/components/__tests__/__snapshots__/ListSection.test.tsx.snap index 45fa3496e9..32283911dd 100644 --- a/src/components/__tests__/__snapshots__/ListSection.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/ListSection.test.tsx.snap @@ -459,7 +459,7 @@ exports[`renders list section with custom title style 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -499,8 +499,8 @@ exports[`renders list section with custom title style 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -540,7 +540,7 @@ exports[`renders list section with custom title style 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -595,7 +595,7 @@ exports[`renders list section with custom title style 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -635,8 +635,8 @@ exports[`renders list section with custom title style 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -676,7 +676,7 @@ exports[`renders list section with custom title style 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -1182,7 +1182,7 @@ exports[`renders list section with subheader 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -1222,8 +1222,8 @@ exports[`renders list section with subheader 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -1263,7 +1263,7 @@ exports[`renders list section with subheader 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -1318,7 +1318,7 @@ exports[`renders list section with subheader 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -1358,8 +1358,8 @@ exports[`renders list section with subheader 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -1399,7 +1399,7 @@ exports[`renders list section with subheader 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -1865,7 +1865,7 @@ exports[`renders list section without subheader 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -1905,8 +1905,8 @@ exports[`renders list section without subheader 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -1946,7 +1946,7 @@ exports[`renders list section without subheader 1`] = ` style={ [ { - "paddingLeft": 16, + "paddingStart": 16, }, { "flexGrow": 1, @@ -2001,7 +2001,7 @@ exports[`renders list section without subheader 1`] = ` [ { "justifyContent": "center", - "paddingRight": 16, + "paddingEnd": 16, "paddingVertical": 8, }, { @@ -2041,8 +2041,8 @@ exports[`renders list section without subheader 1`] = ` }, { "alignSelf": "center", - "marginLeft": 16, - "marginRight": 0, + "marginEnd": 0, + "marginStart": 16, "marginVertical": 0, }, ] @@ -2082,7 +2082,7 @@ exports[`renders list section without subheader 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, ] diff --git a/src/components/__tests__/__snapshots__/MenuItem.test.tsx.snap b/src/components/__tests__/__snapshots__/MenuItem.test.tsx.snap index c316a38599..eb77104af6 100644 --- a/src/components/__tests__/__snapshots__/MenuItem.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/MenuItem.test.tsx.snap @@ -117,7 +117,7 @@ exports[`Menu Item renders menu item 1`] = ` "minWidth": 100, }, { - "marginLeft": 12, + "marginStart": 12, }, undefined, ] @@ -279,7 +279,7 @@ exports[`Menu Item renders menu item 1`] = ` "minWidth": 100, }, { - "marginLeft": 12, + "marginStart": 12, }, undefined, ] @@ -441,7 +441,7 @@ exports[`Menu Item renders menu item 1`] = ` "minWidth": 100, }, { - "marginLeft": 12, + "marginStart": 12, }, undefined, ] @@ -603,7 +603,7 @@ exports[`Menu Item renders menu item 1`] = ` "minWidth": 100, }, { - "marginLeft": 12, + "marginStart": 12, }, undefined, ] @@ -725,7 +725,7 @@ exports[`Menu Item renders menu item 1`] = ` "minWidth": 100, }, { - "marginLeft": 4, + "marginStart": 4, }, undefined, ]