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

Text align to use value from admin #171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Nov 14, 2024

Description

Adding textAlign and textColor to ngStyles on the text component. Then simplified how we add the styles.

This will help with styles as the admin can control the alignment and colour from the admin tool.

@dr-bizz dr-bizz added the On Staging Will be merged to the staging branch by Github Actions label Nov 14, 2024
Copy link
Contributor

I see you added the "On Staging" label, I'll get this merged to the staging branch!

@@ -60,10 +60,13 @@ const standardTypeValues = () => {
const createText = (text: string): Text => {
Copy link
Contributor

Choose a reason for hiding this comment

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

not something that you have to do here, just letting you know that we do expose createTest*() methods for several of the model objects, and the ones that are missing should be easy to expose/add.

They do have defined default values for all the parameters in Kotlin, but that may not be exported correctly to TypeScript.

class Text extends org.cru.godtools.shared.tool.parser.model.Content {
    static createTestText(parent?: any/* org.cru.godtools.shared.tool.parser.model.Base */, text?: string, ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Staging Will be merged to the staging branch by Github Actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants