Skip to content
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

[10.x] Fix custom themes not reseting on Markdown renderer #46200

Merged
merged 2 commits into from
Feb 21, 2023

Conversation

AEM5299
Copy link
Contributor

@AEM5299 AEM5299 commented Feb 21, 2023

This fixes the issue described in #46179. It should reset the theme to 'default' on the Markdown renderer object if no $theme is set on the Mailable object. I've also added a test for this. This PR does not introduce any breaking changes.

There's a small inconsistency between Mailable and Markdown classes, the Mailable class has a default $theme value of null (implicitly the default theme), however Markdown has a default theme value of 'default' (here and here). But fixing this inconsistency might be a breaking change, so not sure if you'd want to fix it.

@taylorotwell taylorotwell merged commit c06dfac into laravel:10.x Feb 21, 2023
@pikseli
Copy link

pikseli commented Feb 28, 2023

Seems like it's setting the theme always to default unless it's explicitly defined in the Mailable class thus making the markdown.theme option in config/mail.php configuration file being ignored.

@driesvints
Copy link
Member

@AEM5299 we'll need to fix that. Can you provide a follow up PR?

@AEM5299
Copy link
Contributor Author

AEM5299 commented Mar 2, 2023

Opened PR #46317.

@driesvints
Copy link
Member

We've decided to revert this PR for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants