From 813f11930fe3693761c50c8bfc45ca359101472b Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Thu, 19 Dec 2024 15:31:40 +0100 Subject: [PATCH] `oh-clock-card`: Remove (broken) background property in favour of style config (#2932) This avoids confusion because `background` is not working anymore. Use `style: background: ` instead. --------- Signed-off-by: Florian Hotze (cherry picked from commit 56e0ebe23ea0b87a5960e52ab40a3d42b5749131) --- bundles/org.openhab.ui/doc/components/oh-clock-card.md | 5 ----- .../web/src/assets/definitions/widgets/standard/cards.js | 1 - 2 files changed, 6 deletions(-) diff --git a/bundles/org.openhab.ui/doc/components/oh-clock-card.md b/bundles/org.openhab.ui/doc/components/oh-clock-card.md index f25e43c77d..3c27450baa 100644 --- a/bundles/org.openhab.ui/doc/components/oh-clock-card.md +++ b/bundles/org.openhab.ui/doc/components/oh-clock-card.md @@ -70,11 +70,6 @@ Display a digital clock in a card - - - Background style (in CSS "background" attribute format) - - Time font size (e.g. "34px") diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cards.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cards.js index 7e10acb772..6ddb95fef0 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cards.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cards.js @@ -143,7 +143,6 @@ export const OhClockCardDefinition = () => new WidgetDefinition('oh-clock-card', { value: 'LT', label: 'Localized time (\'LT\'. e.g. \'8:02 PM\')' }, { value: 'HH:mm:ss', label: 'Current time (\'HH:mm:ss\')' } ], false), - pt('background', 'Background style', 'Background style (in CSS "background" attribute format)'), pt('timeFontSize', 'Time Font Size', 'Time font size (e.g. "34px")'), pt('timeFontWeight', 'Time Font Weight', 'Time font weight (e.g. "normal" or "bold")'), pb('showDate', 'Show the date', 'Show the current date in addition to the time'),