jacksorjacksor (Richard Jackson)
08/21/2023, 3:27 PM<div>
comes from partials/blocklist/default.cshtml
*Goal*: render out a block list's items as <li>
elements within an encapsulating <ul>
i.e. <ul><li></li>...
*Problem*: when using a block list editor there is an encapsulating <div class="umb-block-list">
. This results in the attached image, which becomes:
<ul><div><li></li>...
*Code*: from Clean - renders out image attached:
// Base block editor call
<ul class="list-inline text-center">
@Html.GetBlockListHtml(homePage.SocialIconLinks)
</ul>
// which renders out:
<li class="list-inline-item">
stuff
</li>
*Reason*: currently semantically incorrect and violates WCAG 2.0 A & WCAG131.
Thoughts?huwred
08/21/2023, 3:43 PMjacksorjacksor (Richard Jackson)
08/21/2023, 3:52 PM