Skip to content

Missing text align justify and list checkbox #3

Open
@100tomtomas100

Description

@100tomtomas100

Thank you for this package!

I want to align-text-justify and it is not set by default. As well i can not only change funtionality for just justify, i need to do styling for all other align possibilities.

paragraph: (props) => {
            //@ts-ignore
            if (props.format === "justify") {
              return (
                <p className={styles.paragraphJustify}>{props.children}</p>
              );
            } 
          }

If paragraph is not align-text-justify it returns empty and nothing is rendered. If i want to make other options work i have to style it one by one even though the other options are already styled by default.

I have similar issue with lists and checkbox

list: (props) => {
           //@ts-ignore
           if (props.listType === "check") {     
               return (
                 <CheckBox >{props.children}</CheckBox>
               );
             }
           } else if (props.listType === "bullet") {
             return <ul>{props.children}</ul>;
           } else if (props.listType === "number") {
             return <ol>{props.children}</ol>;
           }
         },

My question is if i can add text-align-justify without the need to style other options (as they are already styled by default) as well as add checkbox without the need to do styling for ol and ul?

Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions