@janiscommerce/ui-web 0.9.0 → 0.9.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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.9.1] - 2022-02-29
11
+
12
+ ### Fixed
13
+
14
+ - Fixed fontcolor of buttons
15
+
10
16
  ## [0.9.0] - 2022-02-19
11
17
 
12
18
  ### Changed
package/dist/index.umd.js CHANGED
@@ -1934,8 +1934,8 @@
1934
1934
  return isValidColor(color) ? viewsPalette["".concat(color, "Pressed")] : bluePressed;
1935
1935
  };
1936
1936
 
1937
- var commonStyles = function commonStyles(iconColor, fontColor) {
1938
- return styled$b.css(["color:", ";.button-icon{fill:", ";}background:none;&:focus,&:hover{background-color:", ";}&:active{background-color:", ";}&:disabled{color:", ";.button-icon{fill:", ";}}"], getColor(fontColor || blue), getColor(iconColor || blue), lightGreyHover, lightGrey, grey, grey);
1937
+ var commonStyles = function commonStyles(iconColor, fontColor, color) {
1938
+ return styled$b.css(["color:", ";.button-icon{fill:", ";}background:none;&:focus,&:hover{background-color:", ";}&:active{background-color:", ";}&:disabled{color:", ";.button-icon{fill:", ";}}"], getColor(fontColor || color || blue), getColor(iconColor || color || blue), lightGreyHover, lightGrey, grey, grey);
1939
1939
  };
1940
1940
 
1941
1941
  var getButtonStyles = function getButtonStyles(_ref) {
@@ -1948,10 +1948,10 @@
1948
1948
  return styled$b.css(["color:", ";&:before{background-color:", ";}.button-icon{fill:", ";}&:focus:after,&:hover:after{background-color:", ";}&:active{background-color:", ";}&:disabled{&:before,&:after{background-color:", ";}}"], getColor(fontColor || 'white'), getColor(color), white, getHoverColor(color), getPressedColor(color), grey);
1949
1949
  },
1950
1950
  outlined: function outlined() {
1951
- return styled$b.css(["", ";border:1px solid ", ";"], commonStyles(color), getColor(grey));
1951
+ return styled$b.css(["", ";border:1px solid ", ";"], commonStyles(iconColor, fontColor, color), getColor(grey));
1952
1952
  },
1953
1953
  cleaned: function cleaned() {
1954
- return commonStyles(iconColor, fontColor);
1954
+ return commonStyles(iconColor, fontColor, color);
1955
1955
  }
1956
1956
  };
1957
1957
  return variantStyles[variant] || '';