Skip to content

Conversation

Copy link

Copilot AI commented Oct 12, 2025

Description

Fixes the issue where the increase/decrease indent buttons in the RichText control's style pane were displaying as missing icon boxes instead of proper icons.

Problem

When users opened the RichText control, authored text, and clicked the ellipsis in the style ribbon to open the style pane, the increase and decrease indent controls showed empty boxes (□) instead of the expected icons.

Root Cause

The component was using icon names IncreaseIndentLegacy and DecreaseIndentLegacy which do not exist in the Fluent UI MDL2 icon font set that ships with @fluentui/react version 8.106.4.

Solution

Updated the icon names to use the correct Fluent UI MDL2 icons:

  • IncreaseIndentLegacyIncreaseIndentText
  • DecreaseIndentLegacyDecreaseIndentText

These icons are part of the official Fluent UI MDL2 icon set and display horizontal lines (representing text) with directional arrows to indicate indent direction.

Changes

src/controls/richText/RichTextPropertyPane.tsx

  • Updated increase indent button to use IncreaseIndentText icon
  • Updated decrease indent button to use DecreaseIndentText icon

src/controls/iconPicker/IconNames.ts

  • Added IncreaseIndentText to the available icons list
  • Added DecreaseIndentText to the available icons list
  • Retained legacy icon names for backward compatibility

Testing

  • ✅ Build completed successfully with no errors or warnings
  • ✅ Verified icon names exist in Fluent UI MDL2 icon set
  • ✅ Confirmed no other components use the legacy icon names

Impact

Users will now see proper indent control icons in the RichText style pane instead of missing icon boxes.

References

Fixes #ISSUE_NUMBER

Original prompt

This section details on the original issue you should resolve

<issue_title>Richtext indent controls missing icons</issue_title>
<issue_description>#### Category
[ ] Enhancement

[X ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.22.0 ]

Expected / Desired Behavior / Question

The icons for increase\decrease indent should load

Observed Behavior

Both these icons (in the style pane) are showing as a box (missing)
IncreaseIndentLegacy
DecreaseIndentLegacy

Steps to Reproduce

Author some text in the webpart and highlight it. Then click the ellipsis in the style ribbon to open the style pane.
</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #2045


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ct icon names

Co-authored-by: AJIXuMuK <17036219+AJIXuMuK@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing icons for richtext indent controls Fix: Replace missing indent icon names in RichText control Oct 12, 2025
Copilot AI requested a review from AJIXuMuK October 12, 2025 21:38
Copilot finished work on behalf of AJIXuMuK October 12, 2025 21:38
@AJIXuMuK AJIXuMuK marked this pull request as ready for review October 12, 2025 22:39
@AJIXuMuK AJIXuMuK merged commit 6a965be into dev Oct 12, 2025
1 check passed
@AJIXuMuK AJIXuMuK deleted the copilot/fix-indent-controls-icons branch October 12, 2025 22:39
@AJIXuMuK AJIXuMuK added this to the 3.23.0 milestone Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants