You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current component composition for a navigation (@db-ui/ngx-components) leads to an intermediate element between the HTML <menu> and <li> element. This is an accessibility issue which should be fixed.
Here is an example of my Angular header component:
(1) I would expect to use the components in composition without having the result that an intermediate element is created. So <li> should follow directly after <menu>. (2) Alternatively <li> and <menu> should be used but instead generic elements with the roles list and listitem.
Screenshots
Browser version
None
Add any other context about the problem here.
Probably this will introduce a breaking change in either the resulting HTML or the component / directive usage and it's maybe also related to other implementations for Vue and / or react which should be verified as well.
A possible solution would be to require an <li> after <db-navigation> without using it in the <db-navigation-item> and make CSS selectors more flexible (so either the nav item is directly an <li> or an <li> followed by a <div>or something similar).
Another solution would probably be to use native HTML within the Header / Navigation and apply classes and styles only by using directives instead of having a mix of components / directives:
Which generators are impacted?
Reproduction case
The current component composition for a navigation (@db-ui/ngx-components) leads to an intermediate element between the HTML
<menu>
and<li>
element. This is an accessibility issue which should be fixed.Here is an example of my Angular header component:
The rendered HTML is:
Expected Behaviour
(1) I would expect to use the components in composition without having the result that an intermediate element is created. So
<li>
should follow directly after<menu>
. (2) Alternatively<li>
and<menu>
should be used but instead generic elements with the roleslist
andlistitem
.Screenshots
Browser version
None
Add any other context about the problem here.
Probably this will introduce a breaking change in either the resulting HTML or the component / directive usage and it's maybe also related to other implementations for Vue and / or react which should be verified as well.
A possible solution would be to require an
<li>
after<db-navigation>
without using it in the<db-navigation-item>
and make CSS selectors more flexible (so either the nav item is directly an<li>
or an<li>
followed by a<div>
or something similar).Another solution would probably be to use native HTML within the Header / Navigation and apply classes and styles only by using directives instead of having a mix of components / directives:
The text was updated successfully, but these errors were encountered: