I noticed title prop was getting rendered as a <div> as a direct descendent of a <ul>, which was failing a11y checks due to invalid markup. I'm adjusting the markup in this PR so that title precedes the <ul>, identical to the way title is handled in <DescriptionList.
Changes
Add titleIcon prop to <List
Make title and title icon styles consistent between list and description list
I noticed
title
prop was getting rendered as a<div>
as a direct descendent of a<ul>
, which was failing a11y checks due to invalid markup. I'm adjusting the markup in this PR so thattitle
precedes the<ul>
, identical to the waytitle
is handled in<DescriptionList
.Changes
titleIcon
prop to<List