Reports ARIA properties that are not supported by an element's role.
✅ This rule is included in the jsx logical and logicalStrict presets.
Elements with ARIA roles should only use ARIA properties that are supported by that role.
Each ARIA role has a specific set of supported properties defined in the WAI-ARIA specification.
Using ARIA properties that are not supported by a role can confuse assistive technologies and lead to unexpected behavior.
For example, the checkbox role supports properties like aria-checked and aria-required, but not aria-selected.
Similarly, the button role supports aria-pressed and aria-expanded, but not aria-checked.
This is required for WCAG 4.1.2 compliance.
CE6dCB0roA1<1"sp ansty="le--0:#ECC48D;--1:#984E">4Dbutt1"sp>1<1"sp ansty="le--0:#7FDBCA;--1:#8844">A1"sp>B0aria-checkA1<1"sp ansty="le--0:#ECC48D;--1:#984E">4Dtr1"sp>1<1"sp ansty="le--0:#7FDBCA;--1:#8844">AE 1"sp>>d ivclassNa="meco">>d>/>d>/>d>CE6dCB0roA1<1"sp ansty="le--0:#ECC48D;--1:#984E">4Dli1"sp>1<1"sp ansty="le--0:#7FDBCA;--1:#8844">A1"sp>B0aria-selectA1<1"sp ansty="le--0:#ECC48D;--1:#984E">4Dtr1"sp>1<1"sp ansty="le--0:#7FDBCA;--1:#8844">AE 1"sp>>d ivclassNa="meco">>d>/>d>/>d>CE6buttCB0aria-checkA1<1"sp ansty="le--0:#ECC48D;--1:#984E">4Dfal1"sp>1<1"sp ansty="le--0:#7FDBCA;--1:#8844">AE 1"sp>>d ivclassNa="meco">>d>/>d>/>d> <44AE spans="tyle--0:#7F">D44AE>ECE<6div spans="tyle--0:#7F">D6div>61B04<4AE= spans="tyle--0:#D9F5DD;--1:#11">14AE=><111" spans="tyle--0:#ECC48D;--1:#98">4E4Dbu111">1<111" spans="tyle--0:#7FDBCA;--1:#88">4111"><4AE spans="tyle--0:#C5E478;--1:#3B">61B0aria-pre4AE >4<4AE= spans="tyle--0:#D9F5DD;--1:#11">14AE=><111" spans="tyle--0:#ECC48D;--1:#98">4E4D111">1<111" spans="tyle--0:#7FDBCA;--1:#88">44A111"><" />" /><>di vdivclass="Nameexpressive-"><44AE spans="tyle--0:#7F">D44AE>ECE<6div spans="tyle--0:#7F">D6div>61B04<4AE= spans="tyle--0:#D9F5DD;--1:#11">14AE=><111" spans="tyle--0:#ECC48D;--1:#98">4E4Dchec111">1<111" spans="tyle--0:#7FDBCA;--1:#88">4111"><4AE spans="tyle--0:#C5E478;--1:#3B">61B0aria-che4AE >4<4AE= spans="tyle--0:#D9F5DD;--1:#11">14AE=><111" spans="tyle--0:#ECC48D;--1:#98">4E4D111">1<111" spans="tyle--0:#7FDBCA;--1:#88">44A111"><" />" />>di><>di vdivclass="Nameexpressive-"><44AE spans="tyle--0:#7F">D44AE>ECE6buD61B0aria-pre4<4AE= spans="tyle--0:#D9F5DD;--1:#11">14AE=><111" spans="tyle--0:#ECC48D;--1:#98">4E4D111">1<111" spans="tyle--0:#7FDBCA;--1:#88">44A111"><" />" />>di>
If you use a framework that automatically changes ARIA properties from custom invalid ones to correct roles, you might need to disable this rule.