[COMPONENTS][CSS] Adding components styling properly.

This commit is contained in:
2021-10-01 17:25:51 +01:00
parent 441c411efe
commit d38ad60c76
15 changed files with 101 additions and 133 deletions

View File

@@ -19,8 +19,21 @@
namespace Component\Right;
use App\Core\Event;
use App\Core\Modules\Component;
class Right extends Component
{
/**
* Output our dedicated stylesheet
*
* @param array $styles stylesheets path
*
* @return bool hook value; true means continue processing, false means stop.
*/
public function onEndShowStyles(array &$styles): bool
{
$styles[] = 'components/Right/assets/css/right.css';
return Event::next;
}
}