Skip to content
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

[@mantine/core] Multiselect: match styles of TextInput #2154

Merged
merged 26 commits into from Aug 18, 2022

Conversation

wes337
Copy link
Contributor

@wes337 wes337 commented Aug 18, 2022

Fixes differences between Multiselect and TextInput styles.

Chrome:
chrome

Edge:
edge

Firefox:
firefox

Same height (30px for XS):
image

Resolves #1962

appearance: 'none',
color: 'inherit',
lineHeight: `${theme.fn.size({ size, sizes: INPUT_SIZES }) - 2}px`,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the same way the line height is calculated in the Input styles

Copy link
Member

Choose a reason for hiding this comment

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

Will in work correctly is MultiSelect has multiple lines? It happens when there are a lot of items selected.

Copy link
Contributor Author

@wes337 wes337 Aug 18, 2022

Choose a reason for hiding this comment

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

Seems fine to me:

Chrome:
image

Edge:
image

The items are not actually part of the input element. But the placeholder text is.

@rtivital rtivital merged commit 814ce82 into mantinedev:master Aug 18, 2022
@rtivital
Copy link
Member

Thanks!

@wes337 wes337 deleted the MN1962 branch August 18, 2022 09:32
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.

Some style differences/issues with TextInput and MultiSelect
2 participants