How to use aria-current?
hellpirat opened this issue · 3 comments
hellpirat commented
Why this prop is under comment - https://github.com/rescript-lang/rescript-react/blob/master/src/ReactDOM.res#L1091 ?
<li className="px-4 text-gray-700" ariaCurrent="page"> {"Blog"->React.string} </li>
This argument cannot be applied with label ~ariaCurrent
ryyppy commented
Back then there was no way to seamlessly map this from ReScript to JavaScript. Now with poly-variants mapping to strings, it should be possible to map these attributes.
cknitt commented
See also rescript-lang/rescript-compiler#5708.
cknitt commented
Done in rescript-lang/rescript-compiler#5723.