Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

align attribute not working in Heading component #3945

Open
statsgod opened this issue Aug 6, 2023 · 0 comments
Open

align attribute not working in Heading component #3945

statsgod opened this issue Aug 6, 2023 · 0 comments

Comments

@statsgod
Copy link

statsgod commented Aug 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant