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

Allow TokenLightRuleElement#color to be injectable #11801

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

stwlam
Copy link
Collaborator

@stwlam stwlam commented Nov 27, 2023

No description provided.

const light = this.value;

for (const key of ["dim", "bright"] as const) {
light.color &&= this.resolveInjectedProperties(light.color);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be worth validating the resolved color through isColorString()?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

already done

@CarlosFdez CarlosFdez merged commit 0286dd8 into foundryvtt:master Nov 27, 2023
1 check passed
@stwlam stwlam deleted the token-light-injectable-color branch November 27, 2023 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants