Found a bug related to accessibility within the global Header component.
Issue caused by the bug
During accessibility compliance scan. A labeled "A" issue was found with "1.3.1 Info and Relationships"
Container element is empty
Some roles are designed to contain other roles. This element has this type of role, but it doesn't contain any required-owned elements.
Reproducing the bug.
Importing @asu/component-header into an application and configuring the property HeaderProps.navTree value to be an empty array ([])
Proposed bug source
Header generates <ul> tag when there are no <li> to map as children.
Accessibility issues: Header component
Found a bug related to accessibility within the global Header component.
Issue caused by the bug
During accessibility compliance scan. A labeled "A" issue was found with "1.3.1 Info and Relationships"
Reproducing the bug.
Importing
@asu/component-header
into an application and configuring the propertyHeaderProps.navTree
value to be an empty array ([]
)Proposed bug source
Header generates
<ul>
tag when there are no<li>
to map as children.file:
<rootDir>/packages/component-header/src/components/HeaderMain/NavbarContainer/index.js
Proposed solution
Conditionally generate the parent element.