Skip to content

Issue with SVG webpart icon in Full-Width section #10452

@mkm17

Description

@mkm17

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • SPFx version 1.21.1
  • browser version 141.0.7390.66

Describe the bug / error

Hi,
In our web part, we noticed that its icon is affecting the spacing in the dropdown selector between the section option and the web part option when it’s used in a full-width section and the page is in edit mode.

The issue occurs specifically when we use the iconImageUrl property in the web part. The visual effect is shown below.

Image

The same icon renders correctly in other contexts.

Image Image

Steps to reproduce

  1. Create a new SharePoint page
  2. Edit the page
  3. Add a new full-width section
  4. Add a webpart with iconImageUrl icon,
  5. Check dropdown to select the correct element to be edited

Expected behavior

The icon size should be limited to the container size in case when the iconImageUrl is used

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions