Skip to content

Fix/segmented control icon spacings #3096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 27, 2024
Merged

Conversation

nitzanyiz
Copy link
Collaborator

@nitzanyiz nitzanyiz commented May 27, 2024

Description

Added spacing between icon and label in the SegmentedControl segments.

Changelog

SegmentedControl - Added S1 spacings between icon and label.

Additional info

MADS-4239

@nitzanyiz nitzanyiz marked this pull request as ready for review May 27, 2024 09:38
@nitzanyiz nitzanyiz requested a review from adids1221 May 27, 2024 09:39
@@ -112,7 +112,7 @@ const Segment = React.memo((props: SegmentProps) => {
onLayout?.(index, event);
},
[onLayout, index]);

const labelAndIconSpacings = !!iconSource && (iconOnRight ? styles.rightMargin : styles.leftMargin);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you should rename it since the Spacing is going to the Text component.
labelMargins or something like that WDYT ?

Copy link
Collaborator Author

@nitzanyiz nitzanyiz May 27, 2024

Choose a reason for hiding this comment

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

Hmm, I dont see much difference. Yours is shorter so we can use that.

Copy link
Contributor

@adids1221 adids1221 left a comment

Choose a reason for hiding this comment

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

Left a small comment

@nitzanyiz nitzanyiz requested a review from adids1221 May 27, 2024 12:16
Copy link
Contributor

@adids1221 adids1221 left a comment

Choose a reason for hiding this comment

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

Approved

@adids1221 adids1221 enabled auto-merge (squash) May 27, 2024 12:54
@nitzanyiz nitzanyiz added the Important for Next Release PR that must be included in the release version label May 27, 2024
@adids1221 adids1221 merged commit 4870678 into master May 27, 2024
1 check passed
@adids1221 adids1221 deleted the fix/SegmentedControlIconSpacings branch May 27, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Important for Next Release PR that must be included in the release version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants