pebble-web 2.26.1 → 2.26.2

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.
@@ -69,18 +69,18 @@ const linkStyle = {
69
69
  }
70
70
  };
71
71
 
72
- const getStyleByType = (type: ButtonType, filled: boolean) => {
72
+ const getStyleByType = (type: ButtonType, outline: boolean) => {
73
73
  if (type === "link") return linkStyle;
74
74
 
75
75
  const _color = mappingColorByType[type];
76
76
  const { base: colorBase, disabled, hover, active, textColor } = _color;
77
77
 
78
- const defaultFontColor = filled ? textColor || white.base : colorBase;
78
+ const defaultFontColor = outline ? colorBase : textColor || white.base;
79
79
 
80
80
  return {
81
81
  color: defaultFontColor,
82
- backgroundColor: filled ? colorBase : white.base,
83
- border: filled ? "none" : `1px solid ${colorBase}`,
82
+ backgroundColor: outline ? white.base : colorBase,
83
+ border: outline ? `1px solid ${colorBase}` : "none",
84
84
  "&:not([disabled]):hover": {
85
85
  color: textColor || white.base,
86
86
  backgroundColor: hover,
@@ -121,13 +121,13 @@ export const getButtonStyle = (
121
121
  size: keyof typeof styleBasedOnSize,
122
122
  type: ButtonType,
123
123
  showShadow: boolean,
124
- filled: boolean
124
+ outline: boolean
125
125
  ) => {
126
126
  return css([
127
127
  commonButtonStyle,
128
128
  {
129
129
  ...styleBasedOnSize[size],
130
- ...getStyleByType(type, filled),
130
+ ...getStyleByType(type, outline),
131
131
  boxShadow: showShadow ? constants.boxShadow.base : "none"
132
132
  }
133
133
  ]);