add betongGray as background color option and default for featured block
This commit is contained in:
@@ -101,6 +101,7 @@ class FeaturedBlock(blocks.StructBlock):
|
||||
)
|
||||
|
||||
COLOR_CHOICES = (
|
||||
("betongGray", "Betonggrå"),
|
||||
("deepBrick", "Dyp tegl"),
|
||||
("neufPink", "Griserosa"),
|
||||
("goldenOrange", "Gyllen oransje"),
|
||||
@@ -120,7 +121,8 @@ class FeaturedBlock(blocks.StructBlock):
|
||||
)
|
||||
background_color = blocks.ChoiceBlock(
|
||||
label="Bakgrunnsfarge",
|
||||
required=False,
|
||||
required=True,
|
||||
default="betongGray",
|
||||
choices=COLOR_CHOICES,
|
||||
)
|
||||
image_position = blocks.ChoiceBlock(
|
||||
@@ -145,7 +147,7 @@ class FeaturedBlock(blocks.StructBlock):
|
||||
GraphQLString("link_text", required=True),
|
||||
GraphQLString("image_position", required=True),
|
||||
GraphQLImage("featured_image_override"),
|
||||
GraphQLString("background_color", required=False),
|
||||
GraphQLString("background_color", required=True),
|
||||
GraphQLPage("featured_page", required=True),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user