Skip to content

Commit

Permalink
Merge branch 'master' into tooltip-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Dec 17, 2020
2 parents 60bacd3 + 6db9cdb commit 0387cb3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -9729,7 +9729,6 @@ $support-01: if(
- [inline-notifications [mixin]](#inline-notifications-mixin)
- [toast-notifications [mixin]](#toast-notifications-mixin)
- [number-input [mixin]](#number-input-mixin)
- [overflow-menu [mixin]](#overflow-menu-mixin)
- [progress-indicator [mixin]](#progress-indicator-mixin)
- [select [mixin]](#select-mixin)
- [text-area [mixin]](#text-area-mixin)
Expand Down Expand Up @@ -9982,6 +9981,7 @@ $danger-01: if(
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)
- [button [mixin]](#button-mixin)
- [overflow-menu [mixin]](#overflow-menu-mixin)

### ✅danger-02 [variable]

Expand Down Expand Up @@ -24306,10 +24306,10 @@ Overflow menu styles
.#{$prefix}--overflow-menu-options__option--danger
.#{$prefix}--overflow-menu-options__btn:focus {
color: $text-04;
background-color: $support-01;
background-color: $danger-01;

svg {
fill: $text-04;
fill: currentColor;
}
}

Expand Down Expand Up @@ -24364,7 +24364,7 @@ Overflow menu styles
- [text-01 [variable]](#text-01-variable)
- [icon-02 [variable]](#icon-02-variable)
- [text-04 [variable]](#text-04-variable)
- [support-01 [variable]](#support-01-variable)
- [danger-01 [variable]](#danger-01-variable)
- [ui-01 [variable]](#ui-01-variable)
- [disabled-02 [variable]](#disabled-02-variable)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@
.#{$prefix}--overflow-menu-options__option--danger
.#{$prefix}--overflow-menu-options__btn:focus {
color: $text-04;
background-color: $support-01;
background-color: $danger-01;

svg {
fill: $text-04;
fill: currentColor;
}
}

Expand Down
8 changes: 4 additions & 4 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5319,7 +5319,7 @@ Map {
"type": "bool",
},
"invalidText": Object {
"type": "string",
"type": "node",
},
"labelText": Object {
"isRequired": true,
Expand Down Expand Up @@ -5427,7 +5427,7 @@ Map {
"type": "bool",
},
"invalidText": Object {
"type": "string",
"type": "node",
},
"labelText": Object {
"isRequired": true,
Expand Down Expand Up @@ -5538,7 +5538,7 @@ Map {
"type": "bool",
},
"invalidText": Object {
"type": "string",
"type": "node",
},
"labelText": Object {
"isRequired": true,
Expand Down Expand Up @@ -5585,7 +5585,7 @@ Map {
"type": "bool",
},
"warnText": Object {
"type": "string",
"type": "node",
},
},
"render": [Function],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ ControlledPasswordInput.propTypes = {
/**
* Provide the text that is displayed when the control is in an invalid state
*/
invalidText: PropTypes.string,
invalidText: PropTypes.node,

/**
* Provide the text that will be read by a screen reader when visiting this
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/TextInput/PasswordInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ PasswordInput.propTypes = {
/**
* Provide the text that is displayed when the control is in an invalid state
*/
invalidText: PropTypes.string,
invalidText: PropTypes.node,

/**
* Provide the text that will be read by a screen reader when visiting this
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ TextInput.propTypes = {
/**
* Provide the text that is displayed when the control is in an invalid state
*/
invalidText: PropTypes.string,
invalidText: PropTypes.node,

/**
* Provide the text that will be read by a screen reader when visiting this
Expand Down Expand Up @@ -262,7 +262,7 @@ TextInput.propTypes = {
/**
* Provide the text that is displayed when the control is in warning state
*/
warnText: PropTypes.string,
warnText: PropTypes.node,
};

TextInput.defaultProps = {
Expand Down

0 comments on commit 0387cb3

Please sign in to comment.