Skip to content

Commit db473d5

Browse files
committed
3 alert colors
Add background color options for alerts
1 parent 3866689 commit db473d5

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/Plugin/Layout/LayoutBase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ protected function getBackgroundColorOptions(): array
495495
UCBLayout::ROW_BACKGROUND_COLOR_DARK_BLUE => $this->t('Dark Blue'),
496496
UCBLayout::ROW_BACKGROUND_COLOR_LIGHT_GREEN => $this->t('Light Green'),
497497
UCBLayout::ROW_BACKGROUND_COLOR_BRICK => $this->t('Brick'),
498+
UCBLayout::ROW_BACKGROUND_COLOR_ALERT_RED => $this->t('Alert Red'),
499+
UCBLayout::ROW_BACKGROUND_COLOR_ALERT_ORANGE => $this->t('Alert Orange'),
500+
UCBLayout::ROW_BACKGROUND_COLOR_ALERT_YELLOW => $this->t('Alert Yellow'),
498501
];
499502
}
500503

src/UCBLayout.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ final class UCBLayout {
6767

6868
public const ROW_BACKGROUND_COLOR_LIGHT_GREEN = 'light-green';
6969

70-
public const ROW_BACKGROUND_COLOR_BRICK= 'brick';
70+
public const ROW_BACKGROUND_COLOR_BRICK = 'brick';
71+
72+
public const ROW_BACKGROUND_COLOR_ALERT_RED = 'alert-red';
73+
74+
public const ROW_BACKGROUND_COLOR_ALERT_ORANGE = 'alert-orange';
75+
76+
public const ROW_BACKGROUND_COLOR_ALERT_YELLOW = 'alert-yellow';
7177

7278
public const ROW_OVERLAY_COLOR_NONE = 'none';
7379

0 commit comments

Comments
 (0)