N°3882 - Pill: Fix default color scheme when in a panel

This commit is contained in:
Molkobain
2021-09-26 00:51:04 +02:00
parent 75d913a003
commit 39d71c9c43
2 changed files with 5 additions and 1 deletions

View File

@@ -78,6 +78,10 @@ $ibo-pill-states-colors: (
/* Rules */
.ibo-pill {
/* --ibo-main-color-xxx is to allow overload from custom dynamic value from the DM. The overload will be done through an additional CSS class of a particular DM class or DM attribute */
--ibo-main-color--100: map-get(map-get($ibo-pill-states-colors, 'neutral'), 'primary-color');
--ibo-main-color--900: map-get(map-get($ibo-pill-states-colors, 'neutral'), 'secondary-color');
@extend %ibo-fully-centered-content;
max-width: $ibo-pill--max-width;
margin: $ibo-pill--margin;

View File

@@ -24,7 +24,7 @@ class Pill extends UIContentBlock
public const BLOCK_CODE = 'ibo-pill';
public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/components/pill/layout';
/** @var null|string CSS class that will be used on the block */
/** @var null|string CSS class that will be used on the block to define its color scheme */
protected $sCSSColorClass;
/** @var null|string URL to go to if the pill is clicked */
protected $sUrl;