Skip to content

fix(material-experimental/mdc-select): fix long labels being incorrectly cut off #21184

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 1 commit into from
Dec 3, 2020

Conversation

annieyw
Copy link
Contributor

@annieyw annieyw commented Dec 1, 2020

The MDC based form field is based on the MDC text field which doesn't actually have styles to handle select as the outline/text field is styled individually by each component. There are plans for MDC to consolidate text field/select styles but for now styles have to be added manually.

Before:
3sSf9UpRttpptN6
A5BmQDp4JcqbBsw

After:
AYLSZYzsmZjSwjs
8vujdrG6iDXZ6qN

Note that floating label for the outline appearance currently has text-overflow: clip instead of text-overflow: ellipsis. https://github.com/material-components/material-components-web/blob/99cfb6bd53f72240fe76852d0fdaa0b82e7dca39/packages/mdc-notched-outline/_mixins.scss#L96

@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 1, 2020
@annieyw annieyw added target: patch This PR is targeted for the next patch release G This is is related to a Google internal issue labels Dec 1, 2020
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

@annieyw annieyw added action: merge The PR is ready for merge by the caretaker P2 The issue is important to a large percentage of users, with a workaround labels Dec 2, 2020
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba merged commit 2df3ac2 into angular:master Dec 3, 2020
mmalerba pushed a commit that referenced this pull request Dec 3, 2020
@annieyw annieyw deleted the select-arrow branch December 29, 2020 06:54
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Jan 14, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement G This is is related to a Google internal issue P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants