How do I disable ngAria in ngMaterial?

后端 未结 5 1041
不知归路
不知归路 2021-01-07 17:43

ngAria (an accessibility module) is adding an unnecessary bower import to my Angular Material project - and now it is throwing warnings:

Attribute \"

5条回答
  •  醉话见心
    2021-01-07 18:02

    ngAria, to my knowledge, cannot be disabled and should not be disabled it is core part of angular-material.
    enter image description here
    To disable warnings you can add aria-label="..." to the specific following items

    • input
    • md-button
    • md-dialog
    • md-icon
    • md-checkbox
    • md-radio-button
    • md-slider
    • md-switch

    I think, I have covered all of them, but there might be other so watch-out!


提交回复
热议问题