kiwicom/orbit

Add "align" prop to heading component.

YairTavizon opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
Well since the component has an "align" prop it would make sense to allow headings to do the same thing. Currently, we would need to use a parent container centering the Heading if needed.

Describe the solution you'd like
The styled Text component has a prop called align... we would need to add that property to the heading component as well...

Describe alternatives you've considered
Maybe create a global "Center" component? with media queries as props so that we could center depending on the viewport as you guys are currently doing in this section of kiwi

CENTERED:
image

NOT CENTERED:
image

Thanks for the suggestion, we will most probably add the "align" prop. 👍

solved in #3141