Using mixins in material-ui to customize components in React

300
June 15, 2018, at 7:50 PM

I am trying to customize a textfield component in Material-ui with React.

https://github.com/material-components/material-components-web/tree/master/packages/mdc-textfield

in this link, it says:

To customize the colors of any part of the text-field, use the following mixins. We recommend you apply these mixins within CSS selectors like .foo-text-field:not(.mdc-text-field--focused) to select your unfocused text fields, and .foo-text-field.mdc-text-field--focused to select your focused text-fields. To change the invalid state of your text fields, apply these mixins with CSS selectors such as .foo-text-field.mdc-text-field--invalid.

I tried to use this mixin to changed the color of the border:

mdc-text-field-outline-color($color): Customizes the border color of the outlined text field.

However, I have no idea how to use this. I installed scss, but I don't get the syntax of setting the color to red with scss.

@mixin mdc-text-field-outline-color($color) {
}

It seems like I start with something like this, but not sure how to move on without a specific example.

Rent Charter Buses Company
READ ALSO
Fixed position footer moving in mobile Chrome

Fixed position footer moving in mobile Chrome

I have a position:fixed footer on a huge form that has been moving after opening the keyboard and scrolling a bitIt happens because the address bar shows/hides, and the footer moves the same height as the address bar, going up and down

224
Horizontally scroll a list within flexbox a layout with set-width sidebar

Horizontally scroll a list within flexbox a layout with set-width sidebar

I have a two-column layout with a tabbed UI in the main section and a sidebar attached to the right-sideOn larger screens, the width of the main column is fluid while the width of the sidebar should be set

154
Column won't align to middle of row in Rails

Column won't align to middle of row in Rails

So I have a fluid container in the application's view, and another container in the home view with 4 rowsThe first row has only one column that won't vertically align to middle of row

180
Cannot figure out website css

Cannot figure out website css

jobcull, I cannot figure out how to stretch the grey color at the bottom to fill the whole screen and also get rid of the white space near the bottom of the blockEverything that I've tried breaks everything else

194