Roasted Blueberry Shortcakes

By Becky Sue from Baking the Goods.

These Roasted Blueberry Shortcakes combine the homey comfort of craggy biscuits served with fresh blueberries that get lightly roasted in the oven until they just begin to burst. The jammy berries are warmly spiced with freshly grated ginger and the sunny essence of lemon juice and zest.

Roasted Blueberry Shortcakes by Baking The Goods
Roasted Blueberry Shortcakes by Baking The Goods

[feast_advanced_jump_to]

Roasting fruit brings out the natural sweetness

If you have never made or experienced roasted fruit before, you are in for a real treat. By roasting blueberries on a baking sheet under the heat of the oven, the natural sweetness is softly coaxed out of the fruit. Giving it a more concentrated and jammy flavor, in a similar way to pie filling. Roasting blueberries gives this Roasted Blueberry Shortcakes recipe a uniquely elegant layer of flavor.

In the past I have roasted strawberries and rhubarb in my Strawberry Rhubarb Shortcake with Whipped Mascarpone recipe. I’ve also used this method to roast grapes, check out my Roasted Grape Goat Cheese Tart, a recipe that teeters in that space between sweet and savory. And I have gone all in on the savory side with a Roasted Tomato Whipped Feta Dip. Remember, tomatoes are considered a fruit too!

  • Strawberry Rhubarb Shortcake with Whipped Mascarpone
  • Roasted Grape Goat Cheese Tart
  • Roasted Tomato Whipped Feta Dip

Blueberries are a healthy source of vitamins and minerals

I, for one, can’t get enough fresh blueberries every spring and summer. They have just the right balance of natural sweetness and mild tartness hidden under a taut and tender skin. That burst of juicy flavor in each berry bite is an undeniable delight. I’m not sure if there is any science behind it but I swear those California Grown blueberries taste just a little bit brighter. It must be thanks to all of that that California sunshine.

Blueberries are a heart-healthy treat with just 80 calories per cup. They are loaded with vitamins and minerals. And blueberries are a great source of Vitamin C. It’s no wonder that blueberries are adored by so many. Incidentally, that means this recipe for Roasted Blueberry Shortcakes is a tasty treat with hidden benefits baked right in.

California Blueberries are grown throughout the state

There are over 80 individual blueberry producers throughout California. Since there are several micro-climates within California, many different blueberry varieties can thrive all through the state. However, most of the commercial blueberry farms are located in California’s San Joaquin Valley.

Blueberry harvest runs from April through June in California

Here in California, blueberry harvest runs from April through June. This is peak California blueberry season and there is no better time to enjoy fresh from the vine blueberries. Keep your eyes peeled for California-grown blueberries to enjoy fresh seasonal berries during this delicious time of year. ‘Tis the magic season to bake a batch of Roasted Blueberry Shortcakes!

Roasted blueberries and shortcakes combine in 1 delightful dessert

These Roasted Blueberry Shortcakes feature two separate components that each mix up in a few simple steps. You don’t even need to lug out a mixer to make these easy bakers. Combining buttery biscuits and seasonal blueberries is a must every spring and summer.

Shortcakes

These airy, sweet shortcakes have an angelically tender interior with a whisper of lemon zest. They bake up with crusty, sugared outer crusts and a crumbly top. Made with just a handful of ingredients, the shortcakes take shape in a few short steps.

Shortcake Ingredients

  • All purpose flour
  • Granulated sugar
  • Baking powder
  • Fine sea salt
  • Lemon
  • Butter
  • Buttermilk
  • Sparkling sugar

How to make the easy Shortcakes

There is no need for any specialty equipment to make the Roasted Blueberry Shortcakes. You can mix the shortcakes together by hand in a mixing bowl. However, I like to use a pastry blender to cut the butter into the dry ingredients. Alternatively, you can use a food processor, 2 butter knives or just squish the butter into the dry ingredients with your hands.

Simply whisk the dry ingredients together and then cut the butter into the dry ingredients. Blend until pea sized granules form.

Next you will hydrate the dry ingredients with buttermilk and then use a fork the blend it together. At this stage the dough should start to clump together but still be shaggy.

Now that the dough has started to come together, it can be shaped into rustic shortcakes. This process is incredibly simple but there are a couple of tricks that will help you achieve the most tender, layer loaded biscuits ever.

Shaping the Shortcakes

When shaping the shortcakes it’s best to not manipulate the dough too much. Use a light touch and move quickly to ensure the butter isn’t warming up and melting. The cold butter hunks assist in creating lovely layers and help give those biscuits texture and height in the heat of the oven, creating the ultimate Roasted Blueberry Shortcakes.

Baking the Shortcakes

Hot Tip: Freezing the shortcakes on a lined baking sheet for a few minutes prior to baking helps them maintain their shape as they bake. Think of it like an added insurance policy to encourage the shortcakes to rise up tall instead of spreading out while baking. The high rise gives them that tender, flaky and crumbly texture that makes shortcakes and biscuits so special.

The shortcakes bake at 400°F, adding more encouragement for the loft. That high heat encourages the shortcakes to rise up quickly and seals the outer shell with crispy edges while keeping the interior tender.

Oven Roasted Blueberry Filling

Blueberries are a versatile fruit that plays well with all kinds of ingredients. However, there is something really unique about the combination of blueberries, lemon and ginger. It’s a trio of fresh and vibrant flavors that all compliment one another.

The filling for the Roasted Blueberry Shortcakes bakes on a baking sheet in the oven instead of simmering on the stove. The simple blueberry filling only uses 5 ingredients that toss together right on that baking sheet. Easy as can be.

Roasted Blueberry Filling Ingredients

  • Fresh California grown blueberries
  • Granulated sugar
  • Ginger
  • Lemon
  • Fine sea salt

How to roast blueberries in the oven

Fresh California blueberries are gently roasted in the oven with a hint of sugar, a zest of lemon and a zing of ginger. It doesn’t take much, just a little heat to coax out the natural sweetness and flavors. Once roasted, the blueberry juices start to become thick and jammy with a deeply concentrated flavor depth. They blend with the other ingredients while roasting, giving the blueberries additional brightness and earthy spiced undertones.

Roast the blueberries in the oven alongside the shortcakes

The best thing about this recipe is that the shortcakes and the blueberries bake simultaneously in the oven, on separate baking sheets. While you do have to prep them individually, there is no need to bake them at separate times. So the baking time is minimal, clocking in at just 20 minutes!

How to assemble and serve the Roasted Blueberry Shortcakes

Once the shortcakes are baked and the blueberries are roasted, all that needs to be done is a little assembly. They come together in just a few simple steps.

  • Split. Simply split the warm shortcakes in half by hand or with a knife. They are so tender they should easily split right in half.
  • Stuff. Top each shortcake with a heaping spoonful of roasted blueberries and finish with a dollop of whipped cream or vanilla ice cream, if desired.
  • Serve. These shortcakes are extra special when served still warm from the oven. However, they can be served at room temperature as well. Or if serving later, you can gently warm the shortcakes and the blueberries just before plating.

Capturing fresh California grown blueberries at their peak is a truly delightful experience. I recommend buying 2 pints at a time. One for fresh snacking and the other to make a batch of Roasted Blueberry Shortcakes. Neither will last long but both will be seriously savored.

This post was proudly made in partnership with California Grown and California Blueberries. All opinions are my own. Thank you for supporting me and the brands that I love. Follow @cagrownofficial and @calbluberries on Instagram to learn more about blueberries and the foods grown in California, farm practices, and discover new recipes!

More blueberry recipes from Baking The Goods

  • Avocado Blueberry Tarts with Almond Crust
  • Blueberry Almond Crumble Pie
  • Blueberry Peach Galette
  • Blueberry Lemon Curd Poppy Seed Shortbread Bars

Print

Recipe

Roasted Blueberry Shortcakes by Baking The Goods

Roasted Blueberry Shortcakes


5 Stars 4 Stars 3 Stars 2 Stars 1 Star

5 from 1 review


  • Author:
    Becky Sue of Baking The Goods


  • Total Time:
    55 minutes


Print Recipe

Save Recipe

Recipe Saved

Description

These Roasted Blueberry Shortcakes combine the homey comfort of craggy biscuits served with fresh blueberries that get lightly roasted in the oven until they just begin to burst. The jammy berries are warmly spiced with freshly grated ginger and the sunny essence of lemon juice and zest.


Ingredients

Shortcakes

2 ¼ cups all purpose flour

3 tablespoons granulated sugar

1 tablespoon baking powder

½ teaspoon fine sea salt

1 lemon, finely zested & juiced, reserve juice for blueberry filling

½ cup cold unsalted butter, cut into ¼” cubes

1 cup buttermilk or heavy cream + 1 tablespoon for brushing

12 tablespoons sparkling or sanding sugar

Roasted Blueberries

3 ½ cups fresh blueberries (1 lb container)

¼ cup granulated sugar

2 tablespoons lemon juice, reserved from shortcakes

⅛ teaspoon fine sea salt

2 teaspoons fresh grated ginger, or ¾ teaspoon ground ginger


Instructions

Make the Shortcakes

Line a baking sheet with parchment paper and set aside.

Measure out flour, sugar, baking powder, lemon zest and salt into a bowl with high sides. Whisk to combine.

Use a pastry blender, two butter knives or your hands to cut the cold, cubed butter into the dry ingredients until the mixture resembles a coarse meal with small, visible butter chunks.

Make a well in the center and pour in the buttermilk or heavy cream. Mix with a fork until the dough just begins to come together in large clumps, it wont take long.

Turn the dough out onto a lightly floured surface. Gather and gently pat it a few times until it starts to come together. Softly pat the dough into a rectangle, 6″ x 9″ about ¾” thick. Fold into 3rds like an envelope, then gently pat into a 6″ x 9″ about ¾” thick again. Use a sharp knife to cut the dough into six, 3″ squares.

Evenly space the shortcakes on a lined baking sheet and place in the freezer for 15-20 minutes to firm up.

Position one rack towards the top and one rack towards the bottom of your oven. Preheat the oven to 400°F while the shortcakes chill in the freezer.

Prep the Blueberries

Line a baking sheet with parchment paper.

Add blueberries to lined baking sheet. Top with grated ginger and 2 tablespoons of lemon juice Sprinkle with sugar and salt. Toss to combine.

Bake the Shortcakes & Roast the Blueberries at the same time

Once chilled, brush the tops of the shortcakes lightly with buttermilk or heavy cream. Sprinkle with sparkling or sanding sugar.

Place shortcakes on the upper rack and the blueberries on the lower rack. Bake for 18-20 minutes, rotating the pans halfway through. The shortcakes should be a warm golden brown on top and toasty brown on the bottom. The blueberries should be plump and just beginning to burst, with juices releasing and thickening.

Assemble Shortcakes

Allow the shortcakes to cool slightly. When ready to serve, gently split the shortcakes in half. Top with a generous spoonful of the roasted blueberries and a dollop of whipped cream or ice cream. Serve while still warm!

Notes

These shortcakes are extra special when served still warm from the oven. However, they can be served at room temperature as well. Or if serving later, you can gently warm the shortcakes and the blueberries just before serving.

Store shortcakes loosely wrapped in foil on the counter for up to 3 days.
Store blueberries in a sealable container in the refrigerator for up to 5 days.

  • Prep Time: 20 minutes
  • Chill Time: 15 minutes
  • Cook Time: 20 minutes

window.trCommon={“minRating”:6,”ajaxurl”:”https:\/\/bakingthegoods.com\/wp-admin\/admin-ajax.php”,”ratingNonce”:””,”postId”:34149};
window.TastyRecipes = window.TastyRecipes || {};

window.TastyRecipes.smoothScroll = {
init() {
document.addEventListener( ‘click’, ( e ) => {
let anchor = e.target;
if ( anchor.tagName !== ‘A’ ) {
anchor = anchor.closest( ‘a.tasty-recipes-scrollto’ );
}

if ( ! anchor || ! anchor.classList.contains( ‘tasty-recipes-scrollto’ ) ) {
return;
}

const elementHref = anchor.getAttribute( ‘href’ );
if ( ! elementHref ) {
return;
}

e.preventDefault();
this.goToSelector( elementHref );
});
},
goToSelector( selector ) {
const element = document.querySelector( selector );
if ( ! element ) {
return;
}
element.scrollIntoView( { behavior: ‘smooth’ } );
}
};

document.addEventListener(
‘DOMContentLoaded’,
() => window.TastyRecipes.smoothScroll.init()
);

(function(){
document.querySelectorAll(‘[data-tr-ingredient-checkbox]’).forEach(function(el) {
var input = el.querySelector(‘.tr-ingredient-checkbox-container input[type=”checkbox”]’);
if ( ! input ) {
return;
}
if (input.checked) {
el.dataset.trIngredientCheckbox = ‘checked’;
}
el.addEventListener(‘click’, function(event) {
if ( ‘A’ === event.target.nodeName
|| ‘INPUT’ === event.target.nodeName
|| ‘LABEL’ === event.target.nodeName ) {
return;
}
input.click();
});
input.addEventListener(‘change’, function() {
el.dataset.trIngredientCheckbox = input.checked ? ‘checked’ : ”;
});
});
}());

window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.cookMode = {
wakeLockApi: false,
wakeLock: false,
cookModeSelector: ‘.tasty-recipes-cook-mode’,
init() {
if (“wakeLock” in navigator && “request” in navigator.wakeLock) {
this.wakeLockApi = navigator.wakeLock;
}

const cookModes = document.querySelectorAll(this.cookModeSelector);

if (cookModes.length > 0) {
for (const cookMode of cookModes) {
if (this.wakeLockApi) {
cookMode.querySelector(‘input[type=”checkbox”]’).addEventListener(“change”, event => {
this.checkboxChange(event.target);
}, false);
} else {
cookMode.style.display = “none”;
}
}
}
},
checkboxChange(checkbox) {
if (checkbox.checked) {
this.lock();
} else {
this.unlock();
}
},
setCheckboxesState(state) {
const checkboxes = document.querySelectorAll(this.cookModeSelector + ‘ input[type=”checkbox”]’);
for (const checkbox of checkboxes) {
checkbox.checked = state;
}
},
async lock() {
try {
this.wakeLock = await this.wakeLockApi.request(“screen”);
this.wakeLock.addEventListener(“release”, () => {
this.wakeLock = false;
this.setCheckboxesState(false);
});
this.setCheckboxesState(true);
} catch (error) {
this.setCheckboxesState(false);
}
},
unlock() {
if (this.wakeLock) {
this.wakeLock.release();
this.wakeLock = false;
}
this.setCheckboxesState(false);
}
};

(function(callback) {
if (document.readyState !== “loading”) {
callback();
} else {
document.addEventListener(“DOMContentLoaded”, callback);
}
})(() => {
window.TastyRecipes.cookMode.init();
});

window.TastyRecipes = window.TastyRecipes || {};

window.TastyRecipes.staticTooltip = {
element: null,
tooltipElement: null,
deleting: false,
init( element ) {
if ( this.deleting ) {
return;
}
this.element = element;
this.buildElements();
},
destroy() {
if ( ! this.tooltipElement || this.deleting ) {
return;
}

this.deleting = true;
this.tooltipElement.classList.remove( ‘opened’ );

setTimeout( () => {
this.tooltipElement.remove();
this.deleting = false;
}, 500 );
},
buildElements() {
const tooltipElement = document.createElement( ‘div’ );
tooltipElement.classList.add( ‘tasty-recipes-static-tooltip’);
tooltipElement.setAttribute( ‘id’, ‘tasty-recipes-tooltip’ );

const currentTooltipElement = document.getElementById( ‘tasty-recipes-tooltip’ );
if ( currentTooltipElement ) {
document.body.replaceChild( tooltipElement, currentTooltipElement );
} else {
document.body.appendChild( tooltipElement );
}

this.tooltipElement = document.getElementById( ‘tasty-recipes-tooltip’ );
},
show() {
if ( ! this.tooltipElement ) {
return;
}

const tooltipTop = this.element.getBoundingClientRect().top
+ window.scrollY
– 10 // 10px offset.
– this.tooltipElement.getBoundingClientRect().height;
const tooltipLeft = this.element.getBoundingClientRect().left
– ( this.tooltipElement.getBoundingClientRect().width / 2 )
+ ( this.element.getBoundingClientRect().width / 2 ) – 1;
const posLeft = Math.max( 10, tooltipLeft );
this.maybeRemoveTail( posLeft !== tooltipLeft );

this.tooltipElement.setAttribute( ‘style’, ‘top:’ + tooltipTop + ‘px;left:’ + posLeft + ‘px;’ );
this.tooltipElement.classList.add( ‘opened’ );

},
maybeRemoveTail( removeTail ) {
if ( removeTail ) {
this.tooltipElement.classList.add( ‘tr-hide-tail’ );
} else {
this.tooltipElement.classList.remove( ‘tr-hide-tail’ );
}
},
changeMessage( message ) {
if ( ! this.tooltipElement ) {
return;
}
this.tooltipElement.innerHTML = message;
}
};

window.TastyRecipes.ajax = {
sendPostRequest( url, data, success, failure ) {
const xhr = new XMLHttpRequest();
xhr.open( ‘POST’, url, true );
xhr.send( this.preparePostData( data ) );

xhr.onreadystatechange = () => {
if ( 4 !== xhr.readyState ) {
return;
}
if ( xhr.status === 200 ) {
success( JSON.parse( xhr.responseText ) );
return;
}

failure( xhr );
};

xhr.onerror = () => {
failure( xhr );
};
},
preparePostData( data ) {
const formData = new FormData();

for ( const key in data ) {
formData.append( key, data[key] );
}
return formData;
},
};

window.TastyRecipes.ratings = {
defaultRating: 0,
currentRatingPercentage: 100,
savingRating: false,
init( minRating ) {
this.minRating = minRating;

this.formWatchRating();
this.closeTooltipWhenClickOutside();
this.addBodyClassBasedOnSelectedRating();
this.backwardCompFormRatingPosition();
},
formWatchRating() {
const ratings = document.querySelectorAll(‘.tasty-recipes-no-ratings-buttons [data-rating]’);
if ( ratings.length {
event.preventDefault();
this.defaultRating = event.target.closest( ‘.checked’ ).dataset.rating;
this.setCheckedStar( event.target );
this.maybeSendRating( this.defaultRating, event.target );
this.setRatingInForm( this.defaultRating );
} );
}
},
closeTooltipWhenClickOutside() {
window.addEventListener( ‘click’, e => {
// Bailout (don’t remove the tooltip) when the clicked element is a rating star, or it’s the tooltip itself.
if ( e.target.closest( ‘.tasty-recipes-rating’ ) || e.target.classList.contains( ‘tasty-recipes-static-tooltip’ ) ) {
return;
}

window.TastyRecipes.staticTooltip.destroy();
} );
},
setRatingInForm( rating ) {
const ratingInput = document.querySelector( ‘#respond .tasty-recipes-rating[value=”‘ + rating + ‘”]’ );
if ( ! ratingInput ) {
return;
}
ratingInput.click();
},
addBodyClassBasedOnSelectedRating() {
const ratingInputs = document.querySelectorAll( ‘input.tasty-recipes-rating’ );
if ( ! ratingInputs ) {
return;
}
for ( const ratingInput of ratingInputs ) {
ratingInput.addEventListener( ‘click’, currentEvent => {
const selectedRating = currentEvent.target.getAttribute( ‘value’ );
this.handleBodyClassByRating( selectedRating );
this.toggleCommentTextareaRequired( selectedRating );
} );
}
},
handleBodyClassByRating( rating ) {
if ( rating < this.minRating ) {
document.body.classList.remove( 'tasty-recipes-selected-minimum-rating' );
return;
}
document.body.classList.add( 'tasty-recipes-selected-minimum-rating' );
},
toggleCommentTextareaRequired( rating ) {
const commentTextarea = document.getElementById( 'comment' );
if ( ! commentTextarea ) {
return;
}

if ( rating {
window.TastyRecipes.staticTooltip.changeMessage( response.data.message );
window.TastyRecipes.staticTooltip.show();
this.updateAverageText( response.data, recipeCardElement );
this.maybeFillCommentForm( response.data );

// Hide the tooltip after 5 seconds.
setTimeout( () => {
this.maybeResetTooltip( recipeCardElement, response.data, rating );
}, 5000 );
},
() => {
this.resetTooltip( recipeCardElement );
}
);
},
updateAverageText( data, recipeCardElement ) {
if ( ! data.average ) {
return;
}
this.setRatingPercent( data );

if ( ! data.count ) {
return;
}

const quickLink = document.querySelector( ‘.tasty-recipes-rating-link’ );
if ( quickLink ) {
this.setTextInContainer( quickLink, data );
this.setPartialStar( quickLink );
}

const cardStars = recipeCardElement.querySelector( ‘.tasty-recipes-ratings-buttons’ );
cardStars.dataset.trDefaultRating = data.average;
this.setTextInContainer( recipeCardElement.querySelector( ‘.tasty-recipes-rating’ ), data );
},
setTextInContainer( container, data ) {
if ( ! container ) {
return;
}

if ( data.label ) {
const ratingLabelElement = container.querySelector( ‘.rating-label’ );
if ( ratingLabelElement ) {
ratingLabelElement.innerHTML = data.label;
}
return;
}

const averageElement = container.querySelector( ‘.average’ );
if ( averageElement ) {
averageElement.textContent = data.average;
}

const countElement = container.querySelector( ‘.count’ );
if ( countElement ) {
countElement.textContent = data.count;
}
},
setPartialStar( container ) {
const highestStar = container.querySelector( ‘[data-rating=”‘ + Math.ceil( this.defaultRating ) + ‘”]’ );
if ( highestStar ) {
highestStar.dataset.trClip = this.currentRatingPercentage;
}
},
setRatingPercent( data ) {
this.defaultRating = data.average.toFixed( 1 );
const parts = data.average.toFixed( 2 ).toString().split( ‘.’ );
this.currentRatingPercentage = parts[1] ? parts[1] : 100;
if ( this.currentRatingPercentage === ’00’ ) {
this.currentRatingPercentage = 100;
}
},
setCheckedStar( target ) {
const cardRatingContainer = target.closest( ‘.tasty-recipes-ratings-buttons’ );
const selectedRatingElement = cardRatingContainer.querySelector( ‘[data-tr-checked]’ );
if ( selectedRatingElement ) {
delete selectedRatingElement.dataset.trChecked;
}

const thisStar = target.closest( ‘.tasty-recipes-rating’ );
thisStar.dataset.trChecked = 1;
thisStar.querySelector( ‘[data-tr-clip]’ ).dataset.trClip = 100;
},
maybeFillCommentForm( data ) {
if ( ! data.comment || ! data.comment.content ) {
return;
}

const commentForm = document.querySelector( ‘#commentform’ );
if ( ! commentForm ) {
return;
}

const commentBox = commentForm.querySelector( ‘[name=comment]’ );
if ( ! commentBox || commentBox.value ) {
return;
}

// Add comment details for editing.
commentBox.innerHTML = data.comment.content;
if ( data.comment.name ) {
commentForm.querySelector( ‘[name=author]’ ).value = data.comment.name;
commentForm.querySelector( ‘[name=email]’ ).value = data.comment.email;
}
},
maybeResetTooltip( recipeCardElement, data, rating ) {
if ( this.savingRating === rating ) {
this.resetTooltip( recipeCardElement, data );
}
},
resetTooltip( recipeCardElement, data ) {
window.TastyRecipes.staticTooltip.destroy();
this.savingRating = false;

// Reset the default rating.
const cardRatingContainer = recipeCardElement.querySelector( ‘.tasty-recipes-ratings-buttons’ );
if ( cardRatingContainer ) {
this.defaultRating = ( data && data.average ) ? data.average.toFixed(1) : cardRatingContainer.dataset.trDefaultRating;
cardRatingContainer.dataset.trDefaultRating = this.defaultRating;

this.resetSelectedStar( cardRatingContainer, data );
}
},
resetSelectedStar( cardRatingContainer ) {
const selectedRatingElement = cardRatingContainer.querySelector( ‘[data-rating=”‘ + Math.ceil( this.defaultRating ) + ‘”]’ );
if ( selectedRatingElement ) {
selectedRatingElement.querySelector( ‘[data-tr-clip]’ ).dataset.trClip = this.currentRatingPercentage;
selectedRatingElement.parentNode.dataset.trChecked = 1;
}

const previousSelectedElement= cardRatingContainer.querySelector( ‘[data-tr-checked]’ );
if ( previousSelectedElement ) {
const currentSelectedRating = previousSelectedElement.querySelector(‘[data-rating]’);
if ( currentSelectedRating !== selectedRatingElement ) {
delete previousSelectedElement.dataset.trChecked;
}
}
},
backwardCompFormRatingPosition() {
const ratingsButtons = document.querySelector( ‘#respond .tasty-recipes-ratings-buttons, #tasty-recipes-comment-rating .tasty-recipes-ratings-buttons’ );
if ( ! ratingsButtons ) {
return;
}
const ratingsButtonsStyles = window.getComputedStyle(ratingsButtons);
if ( ! ratingsButtonsStyles.display.includes( ‘flex’ ) ) {
ratingsButtons.style.direction = ‘rtl’;
}

if ( typeof tastyRecipesRating !== ‘undefined’ ) {
// Select the rating that was previously selected in admin.
ratingsButtons.querySelector( ‘.tasty-recipes-rating[value=”‘ + tastyRecipesRating + ‘”]’ ).checked = true;
}

const ratingSpans = ratingsButtons.querySelectorAll( ‘.tasty-recipes-rating’ );
for (const ratingSpan of ratingSpans) {
ratingSpan.addEventListener( ‘click’, event => {
if ( ratingSpan === event.target ) {
return;
}
ratingSpan.previousElementSibling.click();
} );
}
}
};

(function(callback) {
if (document.readyState !== “loading”) {
callback();
} else {
window.addEventListener( ‘load’, callback );
}
})(() => {
window.TastyRecipes.ratings.init( window.trCommon ? window.trCommon.minRating : 4 );
});

The post Roasted Blueberry Shortcakes appeared first on Baking the Goods.

Leave a comment