@commercetools-uikit/icon-button 19.2.0 → 19.3.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.
|
@@ -88,7 +88,7 @@ const getBaseStyles = (theme, isDisabled, isActive) => {
|
|
|
88
88
|
return /*#__PURE__*/react.css("&,&:hover{background-color:", designSystem.designTokens.colorTransparent, ";border-color:", designSystem.designTokens.colorSurface, ";color:", designSystem.designTokens.colorNeutral60, ";box-shadow:none;}" + ("" ), "" );
|
|
89
89
|
}
|
|
90
90
|
if (!theme || theme === 'default') {
|
|
91
|
-
return /*#__PURE__*/react.css("&:hover{background-color:", designSystem.designTokens.backgroundColorForButtonWhenHovered, ";box-shadow:", designSystem.designTokens.shadow0, ";}&:active{background-color:", designSystem.designTokens.backgroundColorForButtonWhenActive, ";box-shadow:", designSystem.designTokens.shadow0, ";border-color:", designSystem.designTokens.borderColorForButtonAsSecondary, ";}" + ("" ), "" );
|
|
91
|
+
return /*#__PURE__*/react.css("&:hover{background-color:", designSystem.designTokens.backgroundColorForButtonWhenHovered, ";box-shadow:", designSystem.designTokens.shadow0, ";}", isActive ? '&,' : '', " &:active{background-color:", designSystem.designTokens.backgroundColorForButtonWhenActive, ";box-shadow:", designSystem.designTokens.shadow0, ";border-color:", designSystem.designTokens.borderColorForButtonAsSecondary, ";}" + ("" ), "" );
|
|
92
92
|
}
|
|
93
93
|
switch (theme) {
|
|
94
94
|
// TODO: These custom colors where itroduced in the Merchant Center redign 2023
|
|
@@ -146,7 +146,7 @@ IconButton.displayName = 'IconButton';
|
|
|
146
146
|
var IconButton$1 = IconButton;
|
|
147
147
|
|
|
148
148
|
// NOTE: This string will be replaced on build time with the package version.
|
|
149
|
-
var version = "19.
|
|
149
|
+
var version = "19.3.1";
|
|
150
150
|
|
|
151
151
|
exports["default"] = IconButton$1;
|
|
152
152
|
exports.version = version;
|