Skip to content

Are we allowed to reset the label color for the header field in story card Pass? #191

Answered by alexandercerutti
SamYueHW asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @SamYueHW, thanks for using passkit-generator!

All labels in the pass must be of the same color. In fact, labelColor is a "global" (or "root" or "top level", as you reported) property of the pass.json. Hence, you cannot customize the single labels.

{
    "labelColor": "rgb(...)",
    "headerFields": [ ... ]
}

Hope this is helpful!
Let me know if I can help you any further.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alexandercerutti
Comment options

You must be logged in to vote
3 replies
@alexandercerutti
Comment options

@SamYueHW
Comment options

@alexandercerutti
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants