Skip to content

[icons] Please fix the casing for FormatTextdirectionLToRIcon and FormatTextdirectionRToLIcon icons #48850

Open

Description

@Nefcanto

If the casing is PascalCasing as with many more icons, then the correct spelling should be:

FormatTextdirectionLToRIcon => FormatTextDirectionLtrIcon
FormatTextdirectionRToLIcon => FormatTextDirectionRtlIcon

The reason we're asking for this, is because we have created a mini-tool for our panel to optimize icons, and we count on casing to build the correct path, and that tool fails for these icons. We can create exceptions in our code, but I think the right way is for you to fix the casing.

The d in Textdirection should become capitalized => TextDirection
And also the Ltr and Rtl are both known acronyms

Search keywords:

Activity

  1. added
    status: waiting for maintainer
    on Jul 25, 2026
  2. Nefcanto commented on Jul 25, 2026

    @Nefcanto
    Author

    Even spell checkers mark them:

    Image
  3. ZeeshanTamboli commented on Jul 25, 2026

    @ZeeshanTamboli
    Member

    It would be a breaking change to change this.

  4. Nefcanto commented on Jul 26, 2026

    @Nefcanto
    Author

    @ZeeshanTamboli thanks for answering. It can be done without becoming a breaking change. Either new icons can be introduced while keeping the old icons, or in case of case-sensitivity (which I'm not sure new Windows versions support), the casing can be fixed (still having new icons) while the old casing still works.

  5. ZeeshanTamboli commented on Jul 27, 2026

    @ZeeshanTamboli
    Member

    @silviuaavram What do you think about this?

  6. added
    scope: icons
    and removed
    status: waiting for maintainer
    on Jul 27, 2026
  7. changed the title [-]Please fix the casing for FormatTextdirectionLToRIcon and FormatTextdirectionRToLIcon icons[/-] [+][icons] Please fix the casing for FormatTextdirectionLToRIcon and FormatTextdirectionRToLIcon icons[/+] on Jul 27, 2026
  8. silviuaavram commented on Jul 27, 2026

    @silviuaavram
    Member

    @ZeeshanTamboli @Nefcanto I'm sort of against it. Not because it does not make sense, but because of the consistency with Google's material icons. I would aim for the exact match in terms of naming. For example, Format Textdirection L To R is the Material icon, and we should have the same one.

  9. Nefcanto commented on Aug 3, 2026

    @Nefcanto
    Author

    @silviuaavram that's so unfortunate. I asked 5 LLMs, all said the correct casing is TextDirection and Textdirection is wrong. An engineer at Google has made a mistake in casing, and now the whole world should suffer and adapt. That's not the right path to go.

    I think the right path is to echo this upstream until it's fixed at the source, and meanwhile "break the chain of wrongness" anywhere we can.

    ChatGPT:

    Image

    Z:

    Image

    Gemini:

    Image

    DeepSeek:

    Image

    Grok:

    Image
  10. mnajdova commented on Aug 5, 2026

    @mnajdova
    Member

    I would propose

    • opening an issue on the Goole's MD icons repo with the same name inconsistency
    • re-export the icon from our side under the new name
    • re-evaluated in next major if we should drop the old name
  11. silviuaavram commented on Aug 5, 2026

    @silviuaavram
    Member
  12. silviuaavram commented on Aug 24, 2026

    @silviuaavram
    Member

    It seems that the icon name has been applied sentence capitalization. Consequently, the icon names are expected. We can re-consider this for the next major.

  13. added
    breaking change
    on Aug 24, 2026
  14. 13 remaining items

  15. added and removed
    ai: needs-triage
    on Oct 30, 2026
  16. deleted a comment from github-actions on Nov 4, 2026
  17. added
    ai: needs-triage
    and removed
    ai: needs-triage
    on Nov 4, 2026
  18. added and removed
    ai: needs-triage
    on Nov 5, 2026
  19. deleted a comment from github-actions on Nov 5, 2026
  20. added
    ai: needs-triage
    and removed on Nov 5, 2026
  21. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    @mui/icons-material builds each icon's name directly from the Google Material Icons source file name. Every underscore-separated word becomes one capitalized word, so format_textdirection_l_to_r becomes FormatTextdirectionLToR and format_textdirection_r_to_l becomes FormatTextdirectionRToL. Google ships textdirection as a single word, and that's why the d stays lowercase. The current names follow the same rule as every other icon, and the Outlined, Rounded, Sharp and TwoTone variants are named the same way.

    The maintainers want to keep names identical to Google's, and the casing has been raised upstream in google/material-design-icons#2010. The current conclusion is that these names are expected for now, and renaming can be reconsidered for the next major. Any rename would also have to keep the old export names, because existing imports depend on them.

    Workaround for your tool: If your tool needs to find the module path, start from the Google snake_case name, not from re-cased PascalCase. Otherwise, add a small alias map:

    const iconAliases = {
      FormatTextDirectionLtr: 'FormatTextdirectionLToR',
      FormatTextDirectionRtl: 'FormatTextdirectionRToL',
    };

    In your own code you can also re-export the icons under the names you prefer:

    export { default as FormatTextDirectionLtrIcon } from '@mui/icons-material/FormatTextdirectionLToR';
    export { default as FormatTextDirectionRtlIcon } from '@mui/icons-material/FormatTextdirectionRToL';

    I haven't run either snippet.

    Next steps

    • Maintainers: decide whether to add FormatTextDirectionLtr/FormatTextDirectionRtl aliases (keeping the current names) in a future major, or to wait for the upstream issue to be resolved.
    • You: nothing more is needed. Until then, the alias map or re-export above should unblock your tool.

    Agent-generated diagnosis; conclusions have not been independently verified. Workflow run.
    🤖 Triage · Claude Code · claude-opus-5-5 · high effort · 6 turns · 0m38s · $0.08 · run

  22. added and removed
    ai: needs-triage
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai: triagedbreaking changescope: iconstype: enhancementv10.x

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions