Skip to content

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

Merged
mmalerba merged 1 commit into
angular:masterfrom
annieyw:select-arrow
Dec 3, 2020
Merged

fix(material-experimental/mdc-select): fix long labels being incorrectly cut off#21184
mmalerba merged 1 commit into
angular:masterfrom
annieyw:select-arrow

Conversation

@annieyw

@annieyw annieyw commented Dec 1, 2020

Copy link
Copy Markdown
Contributor

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

@crisbeto crisbeto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread src/material-experimental/mdc-select/select.scss Outdated
Comment thread src/material-experimental/mdc-select/select.scss Outdated
Comment thread src/material-experimental/mdc-select/select.scss Outdated
Comment thread src/material-experimental/mdc-select/select.scss Outdated
@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

@mmalerba mmalerba left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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