@algolia/satellite
Advanced tools
Comparing version 1.0.0-beta.29 to 1.0.0-beta.30
@@ -42,3 +42,4 @@ "use strict"; | ||
showTooltip = _ref.showTooltip, | ||
rest = (0, _objectWithoutProperties2["default"])(_ref, ["className", "icon", "size", "kind", "showTooltip"]); | ||
title = _ref.title, | ||
rest = (0, _objectWithoutProperties2["default"])(_ref, ["className", "icon", "size", "kind", "showTooltip", "title"]); | ||
var buttonClass = (0, _classnames["default"])(styles.button, kind && kind !== "neutral" && styles[kind], styles[size], className); | ||
@@ -51,7 +52,8 @@ return _react["default"].createElement(_Tooltip.TooltipWrapper, { | ||
wrapperClassName: styles.wrapper, | ||
content: rest.title | ||
content: title | ||
}, _react["default"].createElement("button", (0, _extends2["default"])({ | ||
className: buttonClass | ||
}, rest, { | ||
ref: ref | ||
ref: ref, | ||
"aria-label": title | ||
}), typeof icon === "string" ? _react["default"].createElement(_MaterialIcon["default"], { | ||
@@ -58,0 +60,0 @@ icon: icon, |
@@ -39,3 +39,3 @@ "use strict"; | ||
return _react["default"].createElement("i", (0, _extends2["default"])({ | ||
className: (0, _classnames["default"])(styles.icon, className), | ||
className: (0, _classnames["default"])(styles.icon, "notranslate", className), | ||
style: mergedStyle | ||
@@ -42,0 +42,0 @@ }, rest), icon); |
{ | ||
"name": "@algolia/satellite", | ||
"version": "1.0.0-beta.29", | ||
"version": "1.0.0-beta.30", | ||
"description": "Algolia design system React components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5211131
3834