Open woodhull opened 1 year ago
This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem
🙃
At present, the problem has been submerged, I personally think that only by re-opening a problem can more people see it and be willing to add it. If this problem is closed, I am very sorry and I will re-open it
This function solves the problem (这个功能解决的问题)
Currently when a label is supplied to the
<n-radio>
component it a div with a class name indicating that it is a label. Instead the component should render the semantic<label>
tag with thefor
attribute set.This means that forms rendered with this library are less accessible than they would otherwise be. The resulting radio buttons do not interact correctly with some automated testing libraries like Capybara / Selenium.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio
Expected API (期望的 API)
Same API, but the markup generated should more closely follow the web standard to allow for accessibility.