reflex-web icon indicating copy to clipboard operation
reflex-web copied to clipboard

font_size doesn't work in accordion.item

Open jq6l43d1 opened this issue 11 months ago • 0 comments

https://reflex.dev/docs/library/disclosure/accordion/ uses 'font_size="3em"' extensively as a prop of rx.accordion.item Like this:

rx.accordion.item(
    header="First Item",
    content="The first accordion item's content",
    font_size="3em",
),

However this has no effect on the font size of the header or the content. Here is an example of changing the font size of the header and the content that works:

rx.accordion.item(
    header=rx.text(
        "First Item", 
        font_size="3em"
    ),
    content=rx.text(
        "The first accordion item's content",
        font_size="4em"
    ),
),

jq6l43d1 avatar Mar 27 '24 17:03 jq6l43d1