Rating breakdown
The average score, how the ratings split from five stars down to one, and the review people found most helpful. For the top of a reviews page.
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-testimonial-rating-breakdown">
<section class="rb" aria-labelledby="ukc-testimonial-rating-breakdown-h">
<div class="sum">
<h3 id="ukc-testimonial-rating-breakdown-h">Workshop reviews</h3>
<p class="big"><span class="n">4.7</span><span class="of">out of 5</span></p>
<div class="stars" role="img" aria-label="4.7 out of 5 stars"><span style="width: 94%"></span></div>
<p class="count">318 reviews since 2021</p>
</div>
<table class="dist">
<caption class="sr">How the 318 ratings split</caption>
<tbody>
<tr><th scope="row">5 stars</th><td class="bar"><span class="track"><span class="amt" style="width: 78%"></span></span></td><td class="c">248</td></tr>
<tr><th scope="row">4 stars</th><td class="bar"><span class="track"><span class="amt" style="width: 15%"></span></span></td><td class="c">47</td></tr>
<tr><th scope="row">3 stars</th><td class="bar"><span class="track"><span class="amt" style="width: 4%"></span></span></td><td class="c">12</td></tr>
<tr><th scope="row">2 stars</th><td class="bar"><span class="track"><span class="amt" style="width: 2%"></span></span></td><td class="c">6</td></tr>
<tr><th scope="row">1 star</th><td class="bar"><span class="track"><span class="amt" style="width: 2%"></span></span></td><td class="c">5</td></tr>
</tbody>
</table>
<figure class="feat">
<p class="lbl">Most helpful review <span>41 people agreed</span></p>
<blockquote><p>Brought in a 1987 tourer with a seized bottom bracket. They quoted £85, found the frame thread was fine after all, and charged me £60. It was ready on the Thursday, as promised.</p></blockquote>
<figcaption><span class="av" aria-hidden="true">IA</span><span class="who"><cite>Imogen Achterberg</cite><span>Rides 11 miles a day to work</span></span></figcaption>
</figure>
</section>
</div>
.ukc-testimonial-rating-breakdown { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-testimonial-rating-breakdown *, .ukc-testimonial-rating-breakdown *::before, .ukc-testimonial-rating-breakdown *::after { box-sizing: border-box; }
.ukc-testimonial-rating-breakdown :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-testimonial-rating-breakdown :where(ul, ol) { padding: 0; list-style: none; }
.ukc-testimonial-rating-breakdown :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-testimonial-rating-breakdown :where(a) { color: inherit; }
.ukc-testimonial-rating-breakdown svg { flex: none; }
.ukc-testimonial-rating-breakdown .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ukc-testimonial-rating-breakdown { container-type: inline-size; inline-size: 100%; }
.ukc-testimonial-rating-breakdown .rb { max-width: 620px; display: grid; gap: 20px; padding: 22px; border: var(--uk-border-width) solid var(--uk-line); border-radius: var(--uk-radius-lg); background: var(--uk-paper); box-shadow: var(--uk-card-shadow); }
.ukc-testimonial-rating-breakdown h3 { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-testimonial-rating-breakdown .big { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.ukc-testimonial-rating-breakdown .n { font-family: var(--uk-font-display, inherit); font-size: 56px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ukc-testimonial-rating-breakdown .of { font-size: 14px; color: var(--uk-muted); }
.ukc-testimonial-rating-breakdown .stars { width: 110px; height: 22px; margin-top: 10px; background: var(--line-strong); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.95 6.2 6.8.75-5.05 4.65 1.4 6.75L12 17.15 5.9 20.55l1.4-6.75L2.25 9.15l6.8-.75z'/%3E%3C/svg%3E") 0 0 / 22px 22px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.95 6.2 6.8.75-5.05 4.65 1.4 6.75L12 17.15 5.9 20.55l1.4-6.75L2.25 9.15l6.8-.75z'/%3E%3C/svg%3E") 0 0 / 22px 22px repeat-x; }
.ukc-testimonial-rating-breakdown .stars span { display: block; height: 100%; background: var(--uk-accent); }
.ukc-testimonial-rating-breakdown .count { margin-top: 8px; font-size: 13px; color: var(--uk-muted); }
.ukc-testimonial-rating-breakdown .dist { width: 100%; border-collapse: collapse; font-size: 13px; }
.ukc-testimonial-rating-breakdown .dist th { width: 1%; padding: 5px 12px 5px 0; text-align: start; font-weight: 500; white-space: nowrap; }
.ukc-testimonial-rating-breakdown .dist td { padding: 5px 0; }
.ukc-testimonial-rating-breakdown .track { display: block; height: 10px; border-radius: var(--uk-radius-full); background: var(--ink-soft); overflow: hidden; }
.ukc-testimonial-rating-breakdown .amt { display: block; min-width: 3px; height: 100%; border-radius: inherit; background: var(--uk-ink); }
.ukc-testimonial-rating-breakdown .dist .c { width: 1%; padding-inline-start: 12px; text-align: end; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--uk-muted); }
.ukc-testimonial-rating-breakdown .feat { display: grid; gap: 10px; padding-top: 18px; border-top: var(--uk-border-width) solid var(--uk-line); }
.ukc-testimonial-rating-breakdown .lbl { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; font-weight: 600; }
.ukc-testimonial-rating-breakdown .lbl span { font-weight: 400; color: var(--uk-muted); }
.ukc-testimonial-rating-breakdown blockquote p { font-family: var(--uk-font-display, inherit); font-size: 18px; line-height: 1.4; text-wrap: pretty; }
.ukc-testimonial-rating-breakdown figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ukc-testimonial-rating-breakdown .av { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--uk-ink); color: var(--uk-paper); font-size: 12px; font-weight: 600; }
.ukc-testimonial-rating-breakdown .who { display: flex; flex-direction: column; line-height: 1.35; color: var(--uk-muted); }
.ukc-testimonial-rating-breakdown cite { font-style: normal; font-weight: 600; font-size: 14px; color: var(--uk-ink); }
@container (min-width: 480px) { .ukc-testimonial-rating-breakdown .rb { grid-template-columns: auto minmax(0, 1fr); column-gap: 36px; align-items: center; } .ukc-testimonial-rating-breakdown .feat { grid-column: 1 / -1; } }
More testimonials
All 24What owners say about Alder Lane Vets
All 5 reviews2 of 5 reviews1 of 5 reviews2 of 5 reviews
Rang at 8:05 with a limping dog and was seen at 9:40 the same morning. Nobody made me feel I was overreacting.
Tomasz Wrenwith Biscuit, a beagleGetting seen The estimate for Juno's dental work was £310 to £380. The bill was £342, itemised, and they went through each line before I paid.
Farah Oyelaranwith Juno, a tabbyThe bill The nurse phoned two days after the operation to ask how Pip was eating. I had not asked for a call.
Hugh Castellanwith Pip, a whippetAftercare Saturday clinic runs until 2pm, so I no longer take a half day off for booster jabs.
Leonie Abbasiwith Mabel and Otis, rabbitsGetting seen They wrote the dosing times on the box in marker pen because I said I would forget. I did not forget.
Ruth Inglebywith Dougal, a terrierAftercare
Verified order
Two 250g bags a fortnight, subscriber for 14 months
The roast date is always inside a week
I have had 31 deliveries from Kiln Road and checked the date stamp on every bag. The oldest was six days. One box arrived a day late in January and they emailed before I noticed.
Read the restShow less
The only thing I would change is the pause button. You have to pause by Sunday night for a Wednesday roast, and I have missed that twice. Both times they held the bags for a week when I asked.
- Freshness
- 5 of 5
- Delivery
- 4 of 5
- Value for money
- 4 of 5
Gwen Sokolova The Bramble fuzz, in print
The Bench ReviewIssue 41, gear pages The Bramble does one sound, and it is the right one. We left it on for the whole session.
Fuzz WeeklyMarch roundup Wired by hand in a garage, and quieter than pedals at three times the price.
Northside CourierLocal business column A two-person company that answers its own email. Our reply came back in eleven minutes.
4 vans
I only wanted to stop double-booking the long wheelbase. Loadline did that in the first week.
9 vans
We took on the pharmacy run because I could finally see which driver was nearest. That contract is a third of our work now.
15 vans
I have not phoned a driver to ask where he is since spring. They would tell you the same, with more swearing.
Mehmet Arslan, dispatcher at Quayside Couriers. Taken from his yearly check-in calls. They reframed my grandmother's sampler without once suggesting it ought to look new. The glass is the only part I can tell they touched.
Edith Marlowe Pale Gable Framing customer since 2019