fix: apply announcement bar class if only needed (#5699)

This commit is contained in:
Alexey Pyltsyn 2021-10-14 12:10:59 +03:00 committed by GitHub
parent 54015de628
commit fee10c9e13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 21 deletions

View file

@ -269,7 +269,7 @@ const ThemeConfigSchema = Joi.object({
.default(DEFAULT_CONFIG.metadatas),
announcementBar: Joi.object({
id: Joi.string().default('announcement-bar'),
content: Joi.string(),
content: Joi.string().required(),
backgroundColor: Joi.string(),
textColor: Joi.string(),
isCloseable: Joi.bool().default(true),