@transferwise/components 0.0.0-experimental-991400c → 0.0.0-experimental-b7a6b24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.esm.js +0 -7
- package/build/index.esm.js.map +1 -1
- package/build/index.js +0 -7
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/alert/Alert.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/alert/Alert.js +0 -8
- package/src/alert/Alert.spec.js +0 -9
- package/src/inputs/SelectInput.story.tsx +22 -0
- package/src/inputs/_BottomSheet.less +1 -1
- package/src/inputs/_Popover.less +1 -1
- package/src/main.css +1 -1
package/build/index.esm.js
CHANGED
|
@@ -1134,12 +1134,6 @@ const Alert = props => {
|
|
|
1134
1134
|
});
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
|
-
function calculateAriaLive() {
|
|
1138
|
-
if ([Sentiment.NEGATIVE, Sentiment.POSITIVE, Sentiment.WARNING].includes(mappedType)) {
|
|
1139
|
-
return 'assertive';
|
|
1140
|
-
}
|
|
1141
|
-
return 'polite';
|
|
1142
|
-
}
|
|
1143
1137
|
const handleTouchStart = () => setShouldFire(true);
|
|
1144
1138
|
const handleTouchMove = () => setShouldFire(false);
|
|
1145
1139
|
const handleTouchEnd = event => {
|
|
@@ -1157,7 +1151,6 @@ const Alert = props => {
|
|
|
1157
1151
|
};
|
|
1158
1152
|
return /*#__PURE__*/jsxs("div", {
|
|
1159
1153
|
role: "alert",
|
|
1160
|
-
"aria-live": calculateAriaLive(),
|
|
1161
1154
|
className: classNames('alert d-flex', `alert-${mappedType}`, className),
|
|
1162
1155
|
onTouchStart: handleTouchStart,
|
|
1163
1156
|
onTouchEnd: handleTouchEnd,
|