@mackin.com/styleguide 9.6.0 → 9.6.1
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/index.js +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3667,7 +3667,13 @@ const SearchBox = React__namespace.forwardRef((props, ref) => {
|
|
|
3667
3667
|
const rightControls = clearButton ? React__namespace.createElement(React__namespace.Fragment, null,
|
|
3668
3668
|
clearButton,
|
|
3669
3669
|
saveButton) : saveButton;
|
|
3670
|
-
|
|
3670
|
+
let clearButtonInputStyles;
|
|
3671
|
+
if (clearButton) {
|
|
3672
|
+
clearButtonInputStyles = css.css({
|
|
3673
|
+
paddingRight: `calc(${theme.controls.height} + ${theme.controls.heightSmall})`
|
|
3674
|
+
});
|
|
3675
|
+
}
|
|
3676
|
+
const input = (React__namespace.createElement(TextInput, Object.assign({}, inputProps, { ref: ref, wrapperClassName: props.inputWrapperClassName, className: css.cx(clearButtonInputStyles, props.inputClassName), rightControl: rightControls })));
|
|
3671
3677
|
const searchBoxWrapperStyles = css.cx(css.css({
|
|
3672
3678
|
label: 'SearchBox'
|
|
3673
3679
|
}), props.wrapperClassName);
|