You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[icons] Please fix the casing for FormatTextdirectionLToRIcon and FormatTextdirectionRToLIcon icons #48850
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
@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.
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
@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.
@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.
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.
@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:
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
Activity
Nefcanto commentedon Jul 25, 2026
Even spell checkers mark them:
ZeeshanTamboli commentedon Jul 25, 2026
It would be a breaking change to change this.
Nefcanto commentedon Jul 26, 2026
@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.
ZeeshanTamboli commentedon Jul 27, 2026
@silviuaavram What do you think about this?
[-]Please fix the casing for FormatTextdirectionLToRIcon and FormatTextdirectionRToLIcon icons[/-][+][icons] Please fix the casing for FormatTextdirectionLToRIcon and FormatTextdirectionRToLIcon icons[/+]silviuaavram commentedon Jul 27, 2026
@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 Ris the Material icon, and we should have the same one.Nefcanto commentedon Aug 3, 2026
@silviuaavram that's so unfortunate. I asked 5 LLMs, all said the correct casing is
TextDirectionandTextdirectionis 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:
Z:
Gemini:
DeepSeek:
Grok:
mnajdova commentedon Aug 5, 2026
I would propose
silviuaavram commentedon Aug 5, 2026
google/material-design-icons#2010
silviuaavram commentedon Aug 24, 2026
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 remaining items
github-actions commentedon Nov 5, 2026
@mui/icons-materialbuilds each icon's name directly from the Google Material Icons source file name. Every underscore-separated word becomes one capitalized word, soformat_textdirection_l_to_rbecomesFormatTextdirectionLToRandformat_textdirection_r_to_lbecomesFormatTextdirectionRToL. Google shipstextdirectionas a single word, and that's why thedstays 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:
In your own code you can also re-export the icons under the names you prefer:
I haven't run either snippet.
Next steps
FormatTextDirectionLtr/FormatTextDirectionRtlaliases (keeping the current names) in a future major, or to wait for the upstream issue to be resolved.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