@douyinfe/semi-icons 2.2.2 → 2.3.0-beta.0

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.
@@ -73,6 +73,7 @@ const Icon = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
73
73
  return /*#__PURE__*/_react.default.createElement("span", (0, _assign.default)({
74
74
  role: "img",
75
75
  ref: ref,
76
+ "aria-label": type,
76
77
  className: classes,
77
78
  style: outerStyle
78
79
  }, restProps), svg);
@@ -54,6 +54,7 @@ const Icon = /*#__PURE__*/React.forwardRef((props, ref) => {
54
54
  return /*#__PURE__*/React.createElement("span", _Object$assign({
55
55
  role: "img",
56
56
  ref: ref,
57
+ "aria-label": type,
57
58
  className: classes,
58
59
  style: outerStyle
59
60
  }, restProps), svg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-icons",
3
- "version": "2.2.2",
3
+ "version": "2.3.0-beta.0",
4
4
  "description": "semi icons",
5
5
  "keywords": [
6
6
  "semi",
@@ -38,7 +38,7 @@
38
38
  "@babel/plugin-transform-runtime": "^7.15.8",
39
39
  "@babel/preset-env": "^7.15.8",
40
40
  "@babel/preset-react": "^7.14.5",
41
- "@douyinfe/semi-webpack-plugin": "2.2.2",
41
+ "@douyinfe/semi-webpack-plugin": "2.3.0-beta.0",
42
42
  "babel-loader": "^8.2.2",
43
43
  "css-loader": "4.3.0",
44
44
  "del": "^6.0.0",
@@ -64,5 +64,5 @@
64
64
  "unpkgFiles": [
65
65
  "*"
66
66
  ],
67
- "gitHead": "de84e4f81bb443c457c075e808c4bd1fcf9441d7"
67
+ "gitHead": "5847f92fd90bc37f1fed5c7d2d6d64f6ebf632bc"
68
68
  }
@@ -31,7 +31,7 @@ const Icon = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
31
31
  outerStyle.transform = `rotate(${rotate}deg)`;
32
32
  }
33
33
  Object.assign(outerStyle, style);
34
- return <span role="img" ref={ref} className={classes} style={outerStyle} {...restProps}>{svg}</span>;
34
+ return <span role="img" ref={ref} aria-label={type} className={classes} style={outerStyle} {...restProps}>{svg}</span>;
35
35
  });
36
36
 
37
37
  // @ts-ignore used to judge whether it is a semi-icon in semi-ui