rescript-react icon indicating copy to clipboard operation
rescript-react copied to clipboard

How to use aria-current?

Open hellpirat opened this issue 4 years ago • 2 comments

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

hellpirat avatar Aug 31 '21 07:08 hellpirat

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.

ryyppy avatar Sep 14 '21 10:09 ryyppy

See also https://github.com/rescript-lang/rescript-compiler/issues/5708.

cknitt avatar Oct 01 '22 12:10 cknitt

Done in https://github.com/rescript-lang/rescript-compiler/pull/5723.

cknitt avatar Oct 07 '22 17:10 cknitt