@alicloud/console-base-theme 1.4.0 → 1.4.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.
@@ -19,9 +19,10 @@ var _shadow = require("./shadow");
19
19
  * 对按钮样式进行重置:
20
20
  * 1. 去掉 padding、background、border,定义 outline 以防止丑陋的 Chrome focus outline 样式
21
21
  * 2. 设置字体(family、颜色、大小、行间距等)继承
22
- * 3. 定义 disabled 的基础样式
22
+ * 3. 避免 link hover 的样式干扰
23
+ * 4. 定义 disabled 的基础样式
23
24
  */
24
- var mixinButtonReset = (0, _styledComponents.css)(["padding:0;border:1px solid transparent;box-sizing:border-box;outline:none;background:none;line-height:inherit;cursor:pointer;font-family:inherit;font-size:inherit;text-align:center;text-decoration:none;color:inherit;transition:all ease-out 0.3s;&:hover{text-decoration:none;}&[disabled]{cursor:not-allowed;}"]);
25
+ var mixinButtonReset = (0, _styledComponents.css)(["padding:0;border:1px solid transparent;box-sizing:border-box;outline:none;background:none;line-height:inherit;cursor:pointer;font-family:inherit;font-size:inherit;text-align:center;text-decoration:none;color:inherit;transition:all ease-out 0.3s;&:hover,&:link:hover{text-decoration:none;}&[disabled]{cursor:not-allowed;}"]);
25
26
  exports.mixinButtonReset = mixinButtonReset;
26
27
  var mixinButtonShadow = (0, _styledComponents.css)(["&:hover,&:focus{", "}&:active,&:disabled{box-shadow:none;}"], _shadow.mixinShadowLDown); // size mixins
27
28
 
@@ -6,10 +6,11 @@ import { mixinShadowLDown } from './shadow';
6
6
  * 对按钮样式进行重置:
7
7
  * 1. 去掉 padding、background、border,定义 outline 以防止丑陋的 Chrome focus outline 样式
8
8
  * 2. 设置字体(family、颜色、大小、行间距等)继承
9
- * 3. 定义 disabled 的基础样式
9
+ * 3. 避免 link hover 的样式干扰
10
+ * 4. 定义 disabled 的基础样式
10
11
  */
11
12
 
12
- export var mixinButtonReset = css(["padding:0;border:1px solid transparent;box-sizing:border-box;outline:none;background:none;line-height:inherit;cursor:pointer;font-family:inherit;font-size:inherit;text-align:center;text-decoration:none;color:inherit;transition:all ease-out 0.3s;&:hover{text-decoration:none;}&[disabled]{cursor:not-allowed;}"]);
13
+ export var mixinButtonReset = css(["padding:0;border:1px solid transparent;box-sizing:border-box;outline:none;background:none;line-height:inherit;cursor:pointer;font-family:inherit;font-size:inherit;text-align:center;text-decoration:none;color:inherit;transition:all ease-out 0.3s;&:hover,&:link:hover{text-decoration:none;}&[disabled]{cursor:not-allowed;}"]);
13
14
  export var mixinButtonShadow = css(["&:hover,&:focus{", "}&:active,&:disabled{box-shadow:none;}"], mixinShadowLDown); // size mixins
14
15
 
15
16
  export var mixinButtonSizeXs = css(["padding:0 ", "px;height:", "px;line-height:", "px;font-size:", "px;"], SIZE.PADDING_X_FORM_CONTROL_XS, SIZE.HEIGHT_FORM_CONTROL_XS, SIZE.HEIGHT_FORM_CONTROL_XS - 2, SIZE.FONT_SIZE_FORM_CONTROL_XS);
@@ -2,7 +2,8 @@
2
2
  * 对按钮样式进行重置:
3
3
  * 1. 去掉 padding、background、border,定义 outline 以防止丑陋的 Chrome focus outline 样式
4
4
  * 2. 设置字体(family、颜色、大小、行间距等)继承
5
- * 3. 定义 disabled 的基础样式
5
+ * 3. 避免 link hover 的样式干扰
6
+ * 4. 定义 disabled 的基础样式
6
7
  */
7
8
  export declare const mixinButtonReset: import("styled-components").FlattenSimpleInterpolation;
8
9
  export declare const mixinButtonShadow: import("styled-components").FlattenSimpleInterpolation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/console-base-theme",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "控制台主题 - 基于 css variable 和 styled-components",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "@alicloud/console-toolkit-cli": "^1.2.30",
28
28
  "@alicloud/console-toolkit-preset-component": "^1.2.53",
29
- "@alicloud/demo-rc-elements": "^1.5.1",
29
+ "@alicloud/demo-rc-elements": "^1.5.2",
30
30
  "@types/lodash": "^4.14.178",
31
31
  "@types/react": "^17.0.39",
32
32
  "@types/styled-components": "^5.1.23",