nl-design-system / backlog

Central product backlog of the NL Design System.
European Union Public License 1.2
7 stars 1 forks source link

Blockquote #73

Open usethetics opened 3 years ago

usethetics commented 3 years ago

Naam

Blockquote

Link naar GitHub Discussion


Variants

Examples of blockquote variations in an article

default blockquote

<article>
  <blockquote>I never lie</blockquote>
</article>

with attribution

<article>
  <figure>
    <blockquote>I never lie</blockquote>
    <figcaption>Jeffrey - April 2023</figcaption>
  </figure>
</article>

pull-quote:

<article>
  <h2>A day in the park</h2>
  <p>And Jeffrey said it was a very beautiful day in April</p>
  <aside>
    <blockquote>It was a very beautiful day</blockquote>
  </aside>
</article>

pull-quote with attribution:

<article>
  <h2>A day in the park</h2>
  <p>And Jeffrey said it was a very beautiful day in April</p>
  <aside>
    <figure>
     <blockquote>It was a very beautiful day</blockquote>
     <figcaption>Jeffrey - April 2023</figcaption>
    </figure>
  </aside>
</article>

Use when

Don’t use when

Alternative components

Naming

We use Blockquote as this is the <blockquote> element in HTML

hidde commented 11 months ago

Adrian Roselli recently looked at blockquotes and how they are read out by screenreaders.

He recommends against figure/figcaption as it is a lot more verbose, advice was also updated on MDN.