Skip to content

Accessibility: Codemod from `<MdiIcon />` to `<Icon svgPath={mdiPath} aria-(hidden|label) />` (Iteration 2)

Administrator requested to merge tr/icon-codemod-v3-2 into main

Created by: umpox

Migration automated through codemod: https://github.com/sourcegraph/codemod/pull/148

Description

Migrates simple <MdiIcon /> usage directly from mdi-react to the <Icon /> Wildcard component and @mdi/js icon content.

Changes:

  • Ran codemod to automatically update all direct usage of this icons
  • Manually added aria-label attributes where relevant.

Test plan

Icon edge cases tested through https://github.com/sourcegraph/sourcegraph/pull/37387, this diff is tested through automated tests.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading