Skip to content

Fixed issue where the Code Chest SVG icon rendered inconsistently with other Gravity Forms add-ons. - #12

Merged
SebastianWiz merged 1 commit into
mainfrom
seb/fix/105882-center-code-chest-icon
Aug 5, 2026
Merged

Fixed issue where the Code Chest SVG icon rendered inconsistently with other Gravity Forms add-ons.#12
SebastianWiz merged 1 commit into
mainfrom
seb/fix/105882-center-code-chest-icon

Conversation

@SebastianWiz

Copy link
Copy Markdown
Contributor

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/3408442579/105882?viewId=3808239

Summary

Issue: The Code Chest icon was returned as an SVG URL, causing Gravity Forms to render it as an <img>. On the add-on uninstall page, Gravity Forms only applies its icon centering styles to inline <svg> and <i> elements, so the Code Chest icon appeared misaligned compared to other add-ons. The SVG path also used a hardcoded black fill instead of currentColor, preventing the icon from inheriting the surrounding Gravity Forms admin color.

Fix: Updated the menu icon method to return the SVG contents so Gravity Forms renders the icon inline and applies its existing sizing and centering styles. The SVG path now uses currentColor so its color follows the surrounding Gravity Forms admin styles.

Checklist

  • Updated customer telling them that a fix/addition is in the works.
  • Added/Improved Cypress tests or a note under Summary why tests are not included in the PR.
  • Added a link to this PR in the Help Scout ticket(s) in the form of a note
  • Added/updated hook documentation if applicable.
  • Sent a packed build of this PR/branch for the customer to test.

@saifsultanc saifsultanc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with

Fixed issue where the Code Chest icon rendered inconsistently with other Gravity Forms add-ons.

@SebastianWiz
SebastianWiz merged commit a6fd3a7 into main Aug 5, 2026
2 checks passed
@SebastianWiz
SebastianWiz deleted the seb/fix/105882-center-code-chest-icon branch August 5, 2026 15:38
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