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: support stacking text styles #272

Merged
merged 2 commits into from
Jul 19, 2024
Merged

feat: support stacking text styles #272

merged 2 commits into from
Jul 19, 2024

Conversation

neverUsedGithub
Copy link
Contributor

@neverUsedGithub neverUsedGithub commented Jul 19, 2024

Add support for stacking styles in the text() component

Previously, stacking multiple styles (e.g., [wavy][rainbow]styled[/rainbow][/wavy]) would result in text being styled with only the outer-most style tag (in this case, [wavy]). This PR changes the inner logic of compileStyledText to correctly apply all nested styles.

Issues or related

Copy link

pkg-pr-new bot commented Jul 19, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

commit: 904a1cf

kaplay

npm i https://pkg.pr.new/marklovers/kaplay@272


templates

@lajbel lajbel merged commit e05c64a into kaplayjs:master Jul 19, 2024
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.

bug: styles in texts cannot be layered
2 participants