From e9e3ccbf2a0eb53aa4d49ccd1ae1aff838430ec4 Mon Sep 17 00:00:00 2001 From: Vincent Smedinga Date: Tue, 7 May 2024 16:08:38 +0200 Subject: [PATCH] Sort fields and add a prop description --- packages/react/src/OrderedList/OrderedList.tsx | 5 +++-- packages/react/src/UnorderedList/UnorderedList.tsx | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react/src/OrderedList/OrderedList.tsx b/packages/react/src/OrderedList/OrderedList.tsx index da40c5d94d..09ef27f909 100644 --- a/packages/react/src/OrderedList/OrderedList.tsx +++ b/packages/react/src/OrderedList/OrderedList.tsx @@ -9,16 +9,17 @@ import type { ForwardedRef, OlHTMLAttributes, PropsWithChildren } from 'react' import { OrderedListItem } from './OrderedListItem' export type OrderedListProps = { - markers?: boolean /** Changes the text color for readability on a dark background. */ inverseColor?: boolean + /** Whether the list items show a marker. */ + markers?: boolean /** The size of the ordered list */ size?: 'small' } & PropsWithChildren> const OrderedListRoot = forwardRef( ( - { children, className, inverseColor, size, markers = true, ...restProps }: OrderedListProps, + { children, className, inverseColor, markers = true, size, ...restProps }: OrderedListProps, ref: ForwardedRef, ) => (