From an accessibility perspective, having an empty <h2/> is confusing. Even though it lacks text, it remains visible to scree readers and is still navigable.
I'm not sure whether wrapping the entire <div/> in this check breaks the layout, or if the individual elements should have aria-hidden set if their values are empty.
From an accessibility perspective, having an empty
<h2/>
is confusing. Even though it lacks text, it remains visible to scree readers and is still navigable.I'm not sure whether wrapping the entire
<div/>
in this check breaks the layout, or if the individual elements should havearia-hidden
set if their values are empty.