Skip to content

Commit

Permalink
Merge branch 'master' into storybook-config-sass
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandra Davila authored Dec 17, 2020
2 parents 3b31540 + 00ad3fe commit 8c3d8fb
Show file tree
Hide file tree
Showing 7 changed files with 19 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
5 changes: 5 additions & 0 deletions packages/react/src/components/Tooltip/Tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import { Props } from '@storybook/addon-docs/blocks';

## Component API

Please note that in addition to the props below, `Tooltip` also has two
additional props: `triggerText` and `iconDescription`. If the `triggerText` prop
is _not_ provided, the `iconDescription` prop is required to populate the
`aria-label` property for a11y reasons.

<Props />

## Feedback
Expand Down

0 comments on commit 8c3d8fb

Please sign in to comment.