Skip to content

Conversation

@Adzouz
Copy link
Contributor

@Adzouz Adzouz commented Jan 6, 2026

What does it do?

Fixes wrong height of select multiple when there are some tags.
It should be 48px height and not 40px.

Expected:
Screenshot 2026-01-06 at 16 45 50

Current:
Screenshot 2026-01-06 at 16 44 13

Why is it needed?

To have all fields the same height for consistency on mobile

How to test it?

  • Go to Storybook > Inputs > Select > Multiple with tags
  • Open the select and select a value to display the tag
  • Resize the window to a mobile breakpoint (< 768px)
    -> The field area should be 48px (with border)

🚀

@Adzouz Adzouz requested a review from mathildeleg January 6, 2026 15:48
@Adzouz Adzouz self-assigned this Jan 6, 2026
@Adzouz Adzouz added pr: fix This PR is fixing a bug source: design-system relates to design-system package labels Jan 6, 2026
@changeset-bot
Copy link

changeset-bot bot commented Jan 6, 2026

⚠️ No Changeset found

Latest commit: 7d40faf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Jan 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
design-system Error Error Jan 7, 2026 1:52pm

Copy link
Contributor

@mathildeleg mathildeleg left a comment

Choose a reason for hiding this comment

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

Just a few questions but otherwise looks good!

}>`
border: 1px solid ${({ theme, $hasError }) => ($hasError ? theme.colors.danger600 : theme.colors.neutral200)};
${(props) => {
switch (props.$size) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no need for specific css for the size S anymore?

Copy link
Contributor Author

@Adzouz Adzouz Jan 7, 2026

Choose a reason for hiding this comment

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

The size S padding is automatically generated with the clearableFieldPaddingStyles util but there's no support for small size with withTags to true 😅 The problem is that there no small version of the Tag object so it's not possible to set both size to S and withTags to true unfortunately 😢

padding-block: ${props.$withTags ? '0.3rem' : props.theme.spaces[2]};
}
`;
padding-inline-start: ${(props) => (props.$withTags ? props.theme.spaces[1] : props.theme.spaces[4])};
Copy link
Contributor

Choose a reason for hiding this comment

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

do you need the check here for props.$withTags if you're overriding it below l120?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Very good point, I removed the condition 😊

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

Copy link
Contributor

@mathildeleg mathildeleg left a comment

Choose a reason for hiding this comment

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

Looks good ✅

@Adzouz Adzouz merged commit c89259b into main Jan 8, 2026
11 of 12 checks passed
@Adzouz Adzouz deleted the fix/select-height-mobile branch January 8, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: fix This PR is fixing a bug source: design-system relates to design-system package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants