From 820ae148990de4c1df1b736647a95d5742c6018f Mon Sep 17 00:00:00 2001 From: Teejay85 Date: Wed, 5 Feb 2020 10:19:08 +0000 Subject: [PATCH] [docs] The error style rule is a pseudo-class (#19555) --- docs/pages/api/filled-input.md | 2 +- docs/pages/api/input-base.md | 2 +- docs/pages/api/input.md | 2 +- docs/pages/api/outlined-input.md | 2 +- packages/material-ui/src/FilledInput/FilledInput.js | 2 +- packages/material-ui/src/Input/Input.js | 2 +- packages/material-ui/src/InputBase/InputBase.js | 2 +- packages/material-ui/src/OutlinedInput/OutlinedInput.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/pages/api/filled-input.md b/docs/pages/api/filled-input.md index 9744fcbaba5a44..63bbf2f4f7c348 100644 --- a/docs/pages/api/filled-input.md +++ b/docs/pages/api/filled-input.md @@ -70,7 +70,7 @@ Any other props supplied will be provided to the root element ([InputBase](/api/ | disabled | .Mui-disabled | Pseudo-class applied to the root element if `disabled={true}`. | adornedStart | .MuiFilledInput-adornedStart | Styles applied to the root element if `startAdornment` is provided. | adornedEnd | .MuiFilledInput-adornedEnd | Styles applied to the root element if `endAdornment` is provided. -| error | .Mui-error | Styles applied to the root element if `error={true}`. +| error | .Mui-error | Pseudo-class applied to the root element if `error={true}`. | marginDense | .MuiFilledInput-marginDense | Styles applied to the `input` element if `margin="dense"`. | multiline | .MuiFilledInput-multiline | Styles applied to the root element if `multiline={true}`. | input | .MuiFilledInput-input | Styles applied to the `input` element. diff --git a/docs/pages/api/input-base.md b/docs/pages/api/input-base.md index f7aabc155212d8..dab99e618ecef7 100644 --- a/docs/pages/api/input-base.md +++ b/docs/pages/api/input-base.md @@ -72,7 +72,7 @@ Any other props supplied will be provided to the root element (native element). | disabled | .Mui-disabled | Styles applied to the root element if `disabled={true}`. | adornedStart | .MuiInputBase-adornedStart | Styles applied to the root element if `startAdornment` is provided. | adornedEnd | .MuiInputBase-adornedEnd | Styles applied to the root element if `endAdornment` is provided. -| error | .Mui-error | Styles applied to the root element if `error={true}`. +| error | .Mui-error | Pseudo-class applied to the root element if `error={true}`. | marginDense | .MuiInputBase-marginDense | Styles applied to the `input` element if `margin="dense"`. | multiline | .MuiInputBase-multiline | Styles applied to the root element if `multiline={true}`. | colorSecondary | .MuiInputBase-colorSecondary | Styles applied to the root element if the color is secondary. diff --git a/docs/pages/api/input.md b/docs/pages/api/input.md index 1de35b5f12f7a4..ce21230b464d1a 100644 --- a/docs/pages/api/input.md +++ b/docs/pages/api/input.md @@ -69,7 +69,7 @@ Any other props supplied will be provided to the root element ([InputBase](/api/ | disabled | .Mui-disabled | Styles applied to the root element if `disabled={true}`. | colorSecondary | .MuiInput-colorSecondary | Styles applied to the root element if color secondary. | underline | .MuiInput-underline | Styles applied to the root element if `disableUnderline={false}`. -| error | .Mui-error | Styles applied to the root element if `error={true}`. +| error | .Mui-error | Pseudo-class applied to the root element if `error={true}`. | marginDense | .MuiInput-marginDense | Styles applied to the `input` element if `margin="dense"`. | multiline | .MuiInput-multiline | Styles applied to the root element if `multiline={true}`. | fullWidth | .MuiInput-fullWidth | Styles applied to the root element if `fullWidth={true}`. diff --git a/docs/pages/api/outlined-input.md b/docs/pages/api/outlined-input.md index 7eb4733c06abc5..8f24e6b3c180e8 100644 --- a/docs/pages/api/outlined-input.md +++ b/docs/pages/api/outlined-input.md @@ -71,7 +71,7 @@ Any other props supplied will be provided to the root element ([InputBase](/api/ | disabled | .Mui-disabled | Styles applied to the root element if `disabled={true}`. | adornedStart | .MuiOutlinedInput-adornedStart | Styles applied to the root element if `startAdornment` is provided. | adornedEnd | .MuiOutlinedInput-adornedEnd | Styles applied to the root element if `endAdornment` is provided. -| error | .Mui-error | Styles applied to the root element if `error={true}`. +| error | .Mui-error | Pseudo-class applied to the root element if `error={true}`. | marginDense | .MuiOutlinedInput-marginDense | Styles applied to the `input` element if `margin="dense"`. | multiline | .MuiOutlinedInput-multiline | Styles applied to the root element if `multiline={true}`. | notchedOutline | .MuiOutlinedInput-notchedOutline | Styles applied to the `NotchedOutline` element. diff --git a/packages/material-ui/src/FilledInput/FilledInput.js b/packages/material-ui/src/FilledInput/FilledInput.js index d9ba768220301d..7718839cc8c4ed 100644 --- a/packages/material-ui/src/FilledInput/FilledInput.js +++ b/packages/material-ui/src/FilledInput/FilledInput.js @@ -97,7 +97,7 @@ export const styles = theme => { adornedEnd: { paddingRight: 12, }, - /* Styles applied to the root element if `error={true}`. */ + /* Pseudo-class applied to the root element if `error={true}`. */ error: {}, /* Styles applied to the `input` element if `margin="dense"`. */ marginDense: {}, diff --git a/packages/material-ui/src/Input/Input.js b/packages/material-ui/src/Input/Input.js index cf15942fc83c4e..5f9745533ebdc1 100644 --- a/packages/material-ui/src/Input/Input.js +++ b/packages/material-ui/src/Input/Input.js @@ -78,7 +78,7 @@ export const styles = theme => { borderBottomStyle: 'dotted', }, }, - /* Styles applied to the root element if `error={true}`. */ + /* Pseudo-class applied to the root element if `error={true}`. */ error: {}, /* Styles applied to the `input` element if `margin="dense"`. */ marginDense: {}, diff --git a/packages/material-ui/src/InputBase/InputBase.js b/packages/material-ui/src/InputBase/InputBase.js index 955a57f420df61..827e98514dbf1b 100644 --- a/packages/material-ui/src/InputBase/InputBase.js +++ b/packages/material-ui/src/InputBase/InputBase.js @@ -63,7 +63,7 @@ export const styles = theme => { adornedStart: {}, /* Styles applied to the root element if `endAdornment` is provided. */ adornedEnd: {}, - /* Styles applied to the root element if `error={true}`. */ + /* Pseudo-class applied to the root element if `error={true}`. */ error: {}, /* Styles applied to the `input` element if `margin="dense"`. */ marginDense: {}, diff --git a/packages/material-ui/src/OutlinedInput/OutlinedInput.js b/packages/material-ui/src/OutlinedInput/OutlinedInput.js index 9ef340a354c74b..884c1117ea6d2f 100644 --- a/packages/material-ui/src/OutlinedInput/OutlinedInput.js +++ b/packages/material-ui/src/OutlinedInput/OutlinedInput.js @@ -53,7 +53,7 @@ export const styles = theme => { adornedEnd: { paddingRight: 14, }, - /* Styles applied to the root element if `error={true}`. */ + /* Pseudo-class applied to the root element if `error={true}`. */ error: {}, /* Styles applied to the `input` element if `margin="dense"`. */ marginDense: {},