[SOLVED] Render block list *without* encapsulating...
# help-with-umbraco
j
*Solution*: initial
<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:
Copy code
// 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?
h
I believe that comes from the partials/blocklist/default.cshtml file
j
It absolutely does, thank you
4 Views