-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix/8.8.3 - Enhanced text-overlay design on mobile to match hero-half #695
Conversation
@yield('hero-buttons') | ||
</div> | ||
<{{ !empty($hero['link']) ? '/a' : '/div' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel like the tradeoff of the performance of this isn't worth the inconsistency with splitting this tag up.
Could we stick to full tags here?
{{ !empty($hero['link']) ? '</a>' : '</div>' }}
@if(!empty($hero['description'])) | ||
{!! $hero['description'] !!} | ||
@if(!empty($hero['link'])) | ||
{!! preg_replace(array('"<a href(.*?)>"', '"</a>"'), array('',''), $hero['description']) !!} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we're starting to do more than display in the templates. Let's take a look at long-term moving some of this content formatting into the controllers/repositories before it gets to Blade to display.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I noticed Text-overlay mobile design was lacking, mirrored to the half-hero mobile appearhance (without a bold title)