Skip to content

Fix: Wrap error title#264

Merged
im-adithya merged 2 commits intogetAlby:masterfrom
kylemccullen:task-alert-title
Feb 7, 2025
Merged

Fix: Wrap error title#264
im-adithya merged 2 commits intogetAlby:masterfrom
kylemccullen:task-alert-title

Conversation

@kylemccullen
Copy link
Copy Markdown
Contributor

Fixes #251

Add a boolean wrapText prop to CardTitle component that when set allows the text to wrap.

This pull request makes the assumption that wrapping text should not be the default, and is only desired on Alerts. If the intention is all CardTitle components should have text wrapped then numberOfLines can be removed.

In this screenshot the Alert title has wrapText prop set, while the title below does not.
image

This is my first pull request for this project. Any feedback is helpful!

@im-adithya
Copy link
Copy Markdown
Member

im-adithya commented Feb 7, 2025

Thanks @kylemccullen, much appreciated!

Yes, it would be good to remove the numberOfLines prop entirely, I'll add a commit add merge this as we have a release lined up soon 😄

@im-adithya im-adithya merged commit d7b632e into getAlby:master Feb 7, 2025
1 of 2 checks passed
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.

[Fix] Wrap error title

2 participants