Skip to content

fix: add fixedWidth to SelectMultiValue remove icon - #1330

Merged
aaronmars merged 1 commit into
masterfrom
react-gears-font-awesome-fix
Jul 21, 2026
Merged

fix: add fixedWidth to SelectMultiValue remove icon#1330
aaronmars merged 1 commit into
masterfrom
react-gears-font-awesome-fix

Conversation

@supernova-dx-appf-io

@supernova-dx-appf-io supernova-dx-appf-io Bot commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Fixes Font Awesome 6.7.2 compatibility issue with SelectMultiValue remove icon causing unintended selection removal.

Problem

After upgrading Font Awesome from 6.2.0 to 6.7.2, multi-select chips in SelectMultiValue were losing their selected values unexpectedly. The 4th selected item in particular would be removed when clicking the remove "×" icon. This was caused by variable icon widths in Font Awesome 6.7.2, which shifted the clickable area of the remove button, causing unintended interactions with adjacent elements.

Solution

Added fixedWidth attribute to the remove icon in SelectMultiValue component. This ensures the icon maintains a consistent, predictable width across Font Awesome versions, stabilizing the chip geometry and preventing click target misalignment.

Changes

  • Added fixedWidth prop to the remove icon (xmark) in SelectMultiValue.js
  • Ensures stable click targets and consistent icon rendering with Font Awesome 6.7.2+

Testing

  • Existing tests pass
  • Change is safe as tests don't assert on icon classNames

Agent session: https://supernova.dx.appf.io/coders/87ad5c34-c03e-4407-a0f5-8fac8c55cc37

The chip's remove glyph (fa-xmark) had no fixed width, so its intrinsic
advance-width shifts with Font Awesome version/metric changes, reflowing
chip widths and the multi-value control's hit-target geometry.

Co-authored-by: Aaron Mars <aaron.mars@appfolio.com>
@github-actions

Copy link
Copy Markdown
Contributor

Released prerelease version 8.19.6-react-gears-font-awesome-fix-7abe66d.0.
You may now run npm install @appfolio/react-gears@react-gears-font-awesome-fix

@supernova-dx-appf-io

Copy link
Copy Markdown
Author

Hi! I couldn't find an account linked to your GitHub profile (@github-actions[bot]).
Before I can interact with you, please link your GitHub account in settings:
https://supernova.dx.appf.io/settings

@aaronmars aaronmars changed the title fix: add fixedWidth to SelectMultiValue remove icon [FEE-1912] add fixedWidth to SelectMultiValue remove icon Jul 21, 2026
@kermitapp

kermitapp Bot commented Jul 21, 2026

Copy link
Copy Markdown

This comment was marked as resolved.

@aaronmars
aaronmars marked this pull request as ready for review July 21, 2026 15:24
@aaronmars
aaronmars requested a review from a team as a code owner July 21, 2026 15:24
@supernova-dx-appf-io supernova-dx-appf-io Bot changed the title [FEE-1912] add fixedWidth to SelectMultiValue remove icon fix: add fixedWidth to SelectMultiValue remove icon Jul 21, 2026
@aaronmars
aaronmars merged commit 967c07a into master Jul 21, 2026
7 checks passed
@aaronmars
aaronmars deleted the react-gears-font-awesome-fix branch July 21, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants