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

feat: Add text alignment prop #2489

Merged
merged 3 commits into from
Jun 14, 2024
Merged

feat: Add text alignment prop #2489

merged 3 commits into from
Jun 14, 2024

Conversation

FrederikBolding
Copy link
Member

Add alignment prop to the Text component.

@FrederikBolding FrederikBolding requested a review from a team as a code owner June 14, 2024 10:48
@@ -17,6 +17,7 @@ export type TextChildren = MaybeArray<
*/
export type TextProps = {
children: TextChildren;
alignment?: 'start' | 'center' | 'end' | undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an @example below with alignment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.34%. Comparing base (0b97b71) to head (9309c22).

Current head 9309c22 differs from pull request most recent head e12d40c

Please upload reports for the commit e12d40c to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2489   +/-   ##
=======================================
  Coverage   94.34%   94.34%           
=======================================
  Files         439      439           
  Lines        9054     9054           
  Branches     1391     1391           
=======================================
  Hits         8542     8542           
  Misses        512      512           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FrederikBolding FrederikBolding merged commit 151e6c5 into main Jun 14, 2024
151 checks passed
@FrederikBolding FrederikBolding deleted the fb/text-alignment branch June 14, 2024 10:57
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

Successfully merging this pull request may close these issues.

2 participants