Skip to content

Commit

Permalink
feat: configure enableExperimentalRtl in renderersProps.ol|ul
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Jun 4, 2021
1 parent 316e706 commit 96daa5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/render-html/src/elements/ListElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ export interface ListElementProps<T extends 'ol' | 'ul'>
getFallbackListStyleTypeFromNestLevel: (
nestLevel: number
) => DefaultSupportedListStyleType;

/**
* If `true` and the direction is set to `'rtl'` (either via `dir` attribute
* or `direction` CSS property):
* - lists markers will be flushed to the right when `I18nManager.isRtl` is `false`.
* - list markers prefixes and suffixes print order will be reversed.
*
* @remarks Beware that left and right padding of li elements *will not*
* be switched.
*
* @defaultValue false
*/
enableExperimentalRtl?: boolean;
/**
* Specifications to render list markers.
*/
Expand Down
13 changes: 13 additions & 0 deletions packages/render-html/src/shared-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ export interface ListElementConfig {
* @defaultValue true
*/
enableRemoveBottomMarginIfNested?: boolean;
/**
* If `true` and the direction is set to `'rtl'` (either via `dir` attribute
* or `direction` CSS property):
*
* - lists markers will be flushed to the right when `I18nManager.isRtl` is `false`.
* - list markers prefixes and suffixes print order will be reversed.
*
* @remarks Beware that left and right padding of li elements *will not*
* be switched.
*
* @defaultValue false
*/
enableExperimentalRtl?: boolean;
}

/**
Expand Down

0 comments on commit 96daa5e

Please sign in to comment.