-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use spans inside button tag instead of divs #994
Conversation
{...props} | ||
ref={ref} | ||
> | ||
<div className="DocSearch DocSearch-Button" {...props} ref={ref}> | ||
<div className="DocSearch-Button-Container"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be moved to a span instead and the button stays (I think)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we are more and more confident with this button tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, it makes sense, replaced divs with spans.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot Alexey and Haroen!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like a solid fix, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @lex111!
Released in |
Summary
At the moment there is the following HTML issue related to the incorrect use of the
button
tag:I suggest replacing the
button
with a regulardiv
element.Result
According to the validator (https://validator.w3.org/nu/#textarea), the error has been fixed.
cc @francoischalifour