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

fix(select): wrong cursor on disabled select #7696

Merged
merged 1 commit into from
Oct 12, 2017

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Oct 10, 2017

  • Fixes some areas of a disabled select having a cursor: pointer.
  • Replaces the mat-disabled class on the form field underline with a mat-form-field-disabled class on the form field itself to allow for easier styling.

Fixes #7695.

@crisbeto crisbeto requested a review from kara as a code owner October 10, 2017 21:14
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 10, 2017
@@ -56,7 +56,7 @@
.mat-form-field-underline {
background-color: $underline-color;

&.mat-disabled {
.mat-form-field-disabled & {
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 we have a rule that & can only go at the beginning in theme files, so that people can do stuff like this

.dark-theme {
  @include angular-material-theme($dark-theme);
}

@crisbeto
Copy link
Member Author

Forgot that that lint rule was a thing @mmalerba, can you take another look?

* Fixes some area of a disabled select having a `cursor: pointer`.
* Replaces the `mat-disabled` class on the form field underline with a `mat-form-field-disabled` class on the form field itself to allow for easier styling.

Fixes angular#7695.
@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Oct 11, 2017
@andrewseguin andrewseguin merged commit 9b4f435 into angular:master Oct 12, 2017
@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 Sep 7, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disabled and selected MatSelect placeholder shouldn't have pointer cursor
4 participants