Skip to content

align attribute not working in Heading component #3945

@Why-Not-Us

Description

@Why-Not-Us

For the heading component, text seems to be defaulting to align="center" with no way to override it using any of the options here: https://orbit.kiwi/components/text/heading/react/#enum

Expected Behavior

setting align="start" should be the equivalent of a left text-align

Current Behavior

setting align="start" does not change text-align (defaults to center)

Possible Solution

Not sure, but did see some docs using "left" whereas some say "start", neither work for me but wondering if this changed at some point and broke in certain places

Steps to Reproduce

<Tile
expandable
header={<Heading type="title1" align="start" largeMobile={{ align: "start" }}>
Testing
}
icon={<Icons.Accommodation />}

example based on this line:

<Heading type="title3" align="center" largeMobile={{ align: "start" }}>

Context (Environment)

This is causing inconsistencies between where I use a title or a header in my tiles (title being less flexible for changes and header={<Heading...} not working predictably.

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