Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
t73biz authored and github-actions[bot] committed Mar 24, 2024
1 parent 9cd6ccd commit b917c34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/GlobalAttributesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ public function setGlobalAttributes(): void
if ($this->contentEditable) {
$this->attributes->add('contenteditable');
}
if(!empty($this->cssClasses)) {
if (! empty($this->cssClasses)) {
$this->attributes->add(['class' => implode(' ', $this->cssClasses)]);
}
if(!empty($this->data)) {
if (! empty($this->data)) {
foreach ($this->data as $datum => $value) {
$this->attributes->add(['data-'.$datum => $value]);
}
Expand All @@ -258,7 +258,7 @@ public function setGlobalAttributes(): void
if (! empty($this->nonce)) {
$this->attributes->add(['nonce' => $this->nonce]);
}
if(!empty($this->parts)) {
if (! empty($this->parts)) {
$this->attributes->add(['part' => implode(' ', $this->parts)]);
}
if (! empty($this->popOver)) {
Expand All @@ -273,7 +273,7 @@ public function setGlobalAttributes(): void
if ($this->spellCheck) {
$this->attributes->add('spellcheck');
}
if(!empty($this->styles)){
if (! empty($this->styles)) {
$styles = [];
foreach ($this->styles as $property => $style) {
$styles[] = $property.':'.$style;
Expand Down

0 comments on commit b917c34

Please sign in to comment.