You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: clean up outdated eslint-disable
* refactor: added some tests
* refactor: after review
* refactor: some refactoring
* refactor: after rebase
* test: added some tests
* refactor: return of the presentation role for the modal backdrop
* refactor: changed Typography Links example
Copy file name to clipboardExpand all lines: src/Button/deprecated/index.jsx
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -85,28 +85,39 @@ class DeprecatedButton extends React.Component {
85
85
}
86
86
87
87
exportconstbuttonPropTypes={
88
-
/** Used to determine the type of button to be rendered. See [Bootstrap's buttons documentation](https://getbootstrap.com/docs/4.0/components/buttons/) for a list of applicable button types. For example, `buttonType="light"`. The default is `undefined`. */
88
+
/** Used to determine the type of button to be rendered.
89
+
* See [Bootstrap's buttons documentation](https://getbootstrap.com/docs/4.0/components/buttons/)
90
+
* for a list of applicable button types. For example, `buttonType="light"`. The default is `undefined`. */
89
91
buttonType: PropTypes.string,
90
-
/** Specifies Bootstrap class names to apply to the button. See [Bootstrap's buttons documentation](https://getbootstrap.com/docs/4.0/components/buttons/) for a list of applicable class names. The default is an empty array. */
92
+
/** Specifies Bootstrap class names to apply to the button.
93
+
* See [Bootstrap's buttons documentation](https://getbootstrap.com/docs/4.0/components/buttons/)
94
+
* for a list of applicable class names. The default is an empty array. */
91
95
className: PropTypes.string,
92
96
/** Specifies the text that is displayed within the button. */
93
97
children: PropTypes.node.isRequired,
94
-
// eslint-disable-next-line max-len
95
-
/** A function that defines a reference for the button. An example `inputRef` from the calling component could look something like: `inputRef={(input) => { this.button = input; }}`. The default is an empty function. */
98
+
/** A function that defines a reference for the button.
99
+
* An example `inputRef` from the calling component could look something
100
+
* like: `inputRef={(input) => { this.button = input; }}`. The default is an empty function. */
/** Used to determine if the button is a "Close" style button to leverage bootstrap styling. Example use case is with the Status Alert [dismiss button](https://getbootstrap.com/docs/4.0/components/alerts/#dismissing). The default is false. */
105
+
/** Used to determine if the button is a "Close" style button to leverage
106
+
* bootstrap styling. Example use case is with
107
+
* the Status Alert [dismiss button](https://getbootstrap.com/docs/4.0/components/alerts/#dismissing).
108
+
* The default is false. */
101
109
isClose: PropTypes.bool,
102
-
// eslint-disable-next-line max-len
103
-
/** A function that would specify what the button should do when the `onBlur` event is triggered. For example, the button could change in color or `buttonType` when focus is changed. The default is an empty function. */
110
+
/** A function that would specify what the button should do when
111
+
* the `onBlur` event is triggered. For example, the button could change
112
+
* in color or `buttonType` when focus is changed. The default is an empty function. */
104
113
onBlur: PropTypes.func,
105
-
// eslint-disable-next-line max-len
106
-
/** A function that would specify what the button should do when the `onClick` event is triggered. For example, the button could launch a `Modal`. The default is an empty function. */
114
+
/** A function that would specify what the button should do when
115
+
* the `onClick` event is triggered. For example, the button could launch
116
+
* a `Modal`. The default is an empty function. */
107
117
onClick: PropTypes.func,
108
-
// eslint-disable-next-line max-len
109
-
/** A function that would specify what the button should do when the `onKeyDown` event is triggered. For example, this could handle using the `Escape` key to trigger the button's action. The default is an empty function. */
118
+
/** A function that would specify what the button should do when
119
+
* the `onKeyDown` event is triggered. For example, this could handle
120
+
* using the `Escape` key to trigger the button's action. The default is an empty function. */
110
121
onKeyDown: PropTypes.func,
111
122
/** Used to set the `type` attribute on the `button` tag. The default type is `button`. */
@@ -50,8 +49,9 @@ class Check extends React.Component {
50
49
}
51
50
52
51
Check.propTypes={
53
-
// eslint-disable-next-line max-len
54
-
/** (`Boolean`): `true` if the state should be checked, `false` otherwise. This prop can be used to manage the Checkbox more directly, overriding the default Checkbox checked state. */
52
+
/** (`Boolean`): `true` if the state should be checked, `false` otherwise.
53
+
* This prop can be used to manage the Checkbox more directly,
54
+
* overriding the default Checkbox checked state. */
55
55
checked: PropTypes.bool,
56
56
/** (`Boolean`): `true` if the checkbox should be disabled, `false` otherwise */
Copy file name to clipboardExpand all lines: src/CheckBoxGroup/index.jsx
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,10 @@ function CheckBoxGroup(props) {
10
10
}
11
11
12
12
CheckBoxGroup.propTypes={
13
-
// eslint-disable-next-line max-len
14
-
/** represents the CheckBox components defined within the CheckBoxGroup component and is not a specific named prop that needs to be passed in. At least one CheckBox must be defined within the group. Example: `<CheckBoxGroup><CheckBox .../></CheckBoxGroup>`
13
+
/** represents the CheckBox components defined within the CheckBoxGroup
14
+
* component and is not a specific named prop that needs to be passed in.
15
+
* At least one CheckBox must be defined within the group.
0 commit comments