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

feat(text-field): Move text-field outline colors to mixins #1963

Merged
merged 3 commits into from
Jan 17, 2018

Conversation

williamernest
Copy link
Contributor

Breaking Change: Moves color customization of the outline text-field to SASS mixins.

refs: #1526

@williamernest williamernest force-pushed the feat/text-field/outline-box-colors-to-mixins branch 2 times, most recently from 78173c6 to 0f61752 Compare January 16, 2018 17:12
@@ -210,6 +210,11 @@ Mixin | Description
`mdc-text-field-focused-bottom-line-color($color)` | Customizes the bottom-line ripple color when the text-field is focused.
`mdc-text-field-ink-color($color)` | Customizes the text entered into the text-field.
`mdc-text-field-label-color($color)` | Customizes the label color of the text-field.
`mdc-text-field-outline-stroke-color($color)` | Customizes the color of the border of the outlined text-field.
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 just mdc-text-field-outline-color. Outline is already a stroke.

Here and the two below.

@@ -72,6 +74,12 @@
}
}

@mixin mdc-text-field-input-hover-outline-stroke-color($color) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah this took me a while to figure out....I think you should add a comment about why this is not the same as mdc-text-field-hover-outline-stroke-color. Where does this get used?

@@ -151,7 +157,7 @@
z-index: 2;

&:hover ~ .mdc-text-field__idle-outline {
border: 1px solid $mdc-text-field-outlined-hover-border;
border: 1px solid;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this line necessary? Seems the same as line 136 above

Copy link
Contributor Author

@williamernest williamernest Jan 16, 2018

Choose a reason for hiding this comment

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

Line 136 is for the input:hover and this one is for icon:hover.

They were both set to the same color, so I set them both using the mdc-text-field-hover-outline-color.

@lynnmercier lynnmercier self-assigned this Jan 16, 2018
@williamernest williamernest force-pushed the feat/text-field/outline-box-colors-to-mixins branch from 81090af to 3e8aac1 Compare January 16, 2018 19:45
@googlebot
Copy link

CLAs look good, thanks!

@material-components material-components deleted a comment from googlebot Jan 16, 2018
@williamernest williamernest force-pushed the feat/text-field/outline-box-colors-to-mixins branch from 3e8aac1 to d67b586 Compare January 16, 2018 20:16
@williamernest williamernest force-pushed the feat/text-field/outline-box-colors-to-mixins branch from d67b586 to 625a6fd Compare January 17, 2018 00:03
@williamernest williamernest merged commit 1dae53c into master Jan 17, 2018
@williamernest williamernest deleted the feat/text-field/outline-box-colors-to-mixins branch January 17, 2018 03:15
acdvorak added a commit that referenced this pull request Jan 17, 2018
commit f399384
Author: Andrew C. Dvorak <[email protected]>
Date:   Tue Jan 16 20:09:43 2018 -0800

    chore(demos): Add example themes & load theme from URL (#1967)

    To test, visit the following URL:

    http://localhost:8080/theme/index.html?theme=dark

    The `theme` param must be one of `baseline`, `black`, `dark`, `white`, or `yellow`.

    This only works on the theme demo page; all other demo pages are unaffected.

commit 1dae53c
Author: Will Ernest <[email protected]>
Date:   Tue Jan 16 19:14:54 2018 -0800

    feat(text-field): Move text-field outline colors to mixins (#1963)

    * feat(text-field): Move color mixins for outline/helper text. Update demos/docs
    Breaking Change: Moves color customization of the outline text-field to SASS mixins.
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.

3 participants