@daoyi/nmtl-ui 2.0.1-beta.104 → 2.0.1-beta.105

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.
@@ -54,6 +54,9 @@ var ForwardLink = function ForwardLink(_ref) {
54
54
  var newWindowLabel = target === '_blank' && (typeof children === 'string' || title) ? "".concat(typeof children === 'string' ? children : title).concat(getIntl().formatMessage({
55
55
  id: 'aria.newWindow'
56
56
  })) : undefined;
57
+ /* R24:aria-label 已含 title 全文時不再輸出 title 屬性——NVDA 會把 title 屬性當
58
+ description 接在 aria-label 之後再唸一次,造成「書名 ×2」(abo 首頁推薦卡實測) */
59
+ var linkTitle = newWindowLabel ? undefined : domTitle;
57
60
  var linkComponent = /*#__PURE__*/React__default.createElement("div", {
58
61
  className: className
59
62
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -69,7 +72,7 @@ var ForwardLink = function ForwardLink(_ref) {
69
72
  React__default.createElement(Link, {
70
73
  className: classNames('forwardLink__link', linkClassName),
71
74
  target: target,
72
- title: domTitle,
75
+ title: linkTitle,
73
76
  "aria-label": newWindowLabel,
74
77
  to: {
75
78
  pathname: "".concat(locale).concat(pathname),
@@ -1,4 +1,4 @@
1
- export { F as default } from './ForwardLink-83a7eea9.js';
1
+ export { F as default } from './ForwardLink-e86c1080.js';
2
2
  import './_rollupPluginBabelHelpers-a52356f6.js';
3
3
  import 'react';
4
4
  import 'prop-types';
@@ -2,7 +2,7 @@ import { a as _slicedToArray } from './_rollupPluginBabelHelpers-a52356f6.js';
2
2
  import React__default, { useState, useRef, useEffect } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { c as classNames } from './index-b76a85f4.js';
5
- import { F as ForwardLink } from './ForwardLink-83a7eea9.js';
5
+ import { F as ForwardLink } from './ForwardLink-e86c1080.js';
6
6
  import { getIntl } from './globalConfig';
7
7
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
8
8
  import './index-b47819f3.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daoyi/nmtl-ui",
3
- "version": "2.0.1-beta.104",
3
+ "version": "2.0.1-beta.105",
4
4
  "description": "This project is to be used as a starter kit for building React component using Storybook and Rollup",
5
5
  "author": "daoyi",
6
6
  "main": "lib/index.js",