fix(button): add px unit to mso-text-raise on Outlook spacer#3591
Open
yashs33244 wants to merge 1 commit into
Open
fix(button): add px unit to mso-text-raise on Outlook spacer#3591yashs33244 wants to merge 1 commit into
yashs33244 wants to merge 1 commit into
Conversation
The left [if mso] spacer interpolated the raise value as a bare number (mso-text-raise:18), which Outlook treats as invalid CSS, so the spacer was not raised to match the button label. The sibling label already emits the unit via React; append px here too.
Contributor
|
@yashs33244 is attempting to deploy a commit to the resend Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 9264b52 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Fix mso-text-raise CSS property to include required 'px' unit for Outlook compatibility. Changes are isolated to a single line in the Button component and its test snapshots, with no logic or architectural impact.
Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Buttonbuilds the left Outlook padding spacer as a raw string and interpolates the vertical raise without a unit:That renders
mso-text-raise:18, which Outlook treats as invalid (a non-zero length needs a unit), so the hair-space spacer isn't raised. The sibling button label sets the same property through a React style object (msoTextRaise: pxToPt(paddingBottom)), which React serializes with a unit (mso-text-raise:9px), so the two were inconsistent.Fix
Append
pxto the spacer's raise value so it matches the label (mso-text-raise:18px). One-line change; the 18:9 ratio is unchanged. Updated the three affected inline snapshots (mso-text-raise:18->18px, and two:0->:0px).Summary by cubic
Fixes the Outlook padding spacer in
Buttonby adding thepxunit tomso-text-raise. Outlook now applies the raise correctly, matching the label.mso-text-raisevalues now includepx(18->18px,0->0px).Written for commit 9264b52. Summary will update on new commits.