generated from helsingborg-stad/Wordpress-Plugin-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: replace background image with image * feat: restructure card. * fix: component adjustments. * fix: resolve metaFirst argument. --------- Co-authored-by: Sebastian Thulin <sebastian.thulin@helsingborg.se>
- Loading branch information
1 parent
f3e94f9
commit 949d23f
Showing
12 changed files
with
98 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
{!! $slot !!} | ||
@includeWhen($afterContentSlotHasData, 'Card.views.after-content') | ||
</{{ $componentElement }}> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
source/php/Component/Card/components/collapsiableButton.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
@group([ | ||
'justifyContent' => 'space-between', | ||
'alignItems' => 'start', | ||
'alignItems' => 'center', | ||
]) | ||
@group([ | ||
'direction' => 'vertical' | ||
]) | ||
@typography([ | ||
'element' => 'h2', | ||
'variant' => 'h3', | ||
'classList' => [ | ||
$baseClass."__heading" | ||
] | ||
]) | ||
{!! $heading !!} | ||
@endtypography | ||
|
||
@if($heading) | ||
@typography([ | ||
'element' => 'h2', | ||
'variant' => 'h3', | ||
'classList' => [ | ||
$baseClass."__heading", | ||
'u-margin__y--0' | ||
] | ||
]) | ||
{!! $heading !!} | ||
@endtypography | ||
@endif | ||
|
||
@if($subHeading) | ||
@typography([ | ||
'element' => 'span', | ||
'variant' => 'h6', | ||
'classList' => [ | ||
$baseClass . '__sub-heading', | ||
'u-margin__y--0' | ||
] | ||
]) | ||
{!! $subHeading !!} | ||
@endtypography | ||
@endif | ||
|
||
@includeWhen($meta && !$metaFirst, 'Card.components.meta') | ||
@endgroup | ||
@includeWhen($collapsible, 'Card.components.collapsiableButton') | ||
@includeWhen($icon && !empty($displayIcon), 'Card.components.icon') | ||
@endgroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
<div class="{{$baseClass}}__image {{$baseClass}}__image--{{$image['backgroundColor']}}"> | ||
<div class="{{$baseClass}}__image-background {{$paddedImage}}" style="background-image:url('{{$image['src']}}');"></div> | ||
<div class="{{$baseClass}}__image-container"> | ||
@image([ | ||
'src' => is_array($image) ? $image['src'] : $image, | ||
'alt' => isset($image['alt']) ? $image['alt'] : null, | ||
'cover' => true, | ||
'classList' => [ | ||
$baseClass . '__image' | ||
], | ||
'placeholderEnabled' => $hasPlaceholder, | ||
]) | ||
@endimage | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters