diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-20 22:22:35 +0200 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-21 19:23:43 +0200 | 
| commit | 802548124071039f83ebfa2605e839ded82b5689 (patch) | |
| tree | 62d85fe786b84fcdd099f20e21e1827add701ae8 /src/components/atoms/lists/list.tsx | |
| parent | 7fd11d99f8a547e4acb89b9f9159b92e208dc90f (diff) | |
chore: update some styles
* Improve wp-blocks-columns, wp-block-quote and some images
* Make Sharing widget consistent between pages
* Remove margin option from lists
* Fix Topic logo alignement
Diffstat (limited to 'src/components/atoms/lists/list.tsx')
| -rw-r--r-- | src/components/atoms/lists/list.tsx | 12 | 
1 files changed, 2 insertions, 10 deletions
| diff --git a/src/components/atoms/lists/list.tsx b/src/components/atoms/lists/list.tsx index 711ade1..aa0a241 100644 --- a/src/components/atoms/lists/list.tsx +++ b/src/components/atoms/lists/list.tsx @@ -33,10 +33,6 @@ export type ListProps = {     * The list kind.     */    kind?: 'ordered' | 'unordered' | 'flex'; -  /** -   * Set margin between list items. Default: true. -   */ -  withMargin?: boolean;  };  /** @@ -49,11 +45,9 @@ const List: FC<ListProps> = ({    items,    itemsClassName = '',    kind = 'unordered', -  withMargin = true,  }) => {    const ListTag = kind === 'ordered' ? 'ol' : 'ul';    const kindClass = `list--${kind}`; -  const marginClass = withMargin ? 'list--has-margin' : 'list--no-margin';    /**     * Retrieve the list items. @@ -66,7 +60,7 @@ const List: FC<ListProps> = ({          {value}          {child && (            <ListTag -            className={`${styles.list} ${styles[kindClass]} ${styles[marginClass]} ${className}`} +            className={`${styles.list} ${styles[kindClass]} ${className}`}            >              {getItems(child)}            </ListTag> @@ -76,9 +70,7 @@ const List: FC<ListProps> = ({    };    return ( -    <ListTag -      className={`${styles.list} ${styles[kindClass]} ${styles[marginClass]} ${className}`} -    > +    <ListTag className={`${styles.list} ${styles[kindClass]} ${className}`}>        {getItems(items)}      </ListTag>    ); | 
