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
Error: The element button must not appear as a descendant of the a element.
From line 6, column 13; to line 6, column 20 href="/"><button>Hello
Error: The element a must not appear as a descendant of the button element.
From line 7, column 9; to line 7, column 20 >↩<button><a href="/">Hello
It is highly likely not profitable for SEO to do vaadin-button onclick=window.location.href ➕ there's probably other undesired side-effects.
Since we're blocked in both element nesting directions within the currently available toolbelt, I'm feeling like vaadin-button styling should maybe be a re-usable mixin, so that it'd also be possible to style native <a> elements as buttons?
Background: #79 and https://github.com/vaadin/vaadin-lumo-styles/issues/5
Problem
Many website designs suggest button style navigation elements for UX reasons.
vaadin-button
seems like the handy choice, but it's not valid HTML5 to nest<button>
element inside<a>
- transparent elements can have no interactive descendants: https://stackoverflow.com/questions/6393827/can-i-nest-a-button-element-inside-an-a-using-html5Vice versa is also blocked, see https://validator.w3.org/#validate_by_input
Error: The element button must not appear as a descendant of the a element.
From line 6, column 13; to line 6, column 20
href="/"><button>Hello
Error: The element a must not appear as a descendant of the button element.
From line 7, column 9; to line 7, column 20
>↩<button><a href="/">Hello
It is highly likely not profitable for SEO to do
vaadin-button onclick=window.location.href
➕ there's probably other undesired side-effects.Since we're blocked in both element nesting directions within the currently available toolbelt, I'm feeling like
vaadin-button
styling should maybe be a re-usable mixin, so that it'd also be possible to style native<a>
elements as buttons?Your thoughts? cc @jouni @web-padawan
The text was updated successfully, but these errors were encountered: