fix(paths): break long paths with <wbr> (#7516)

- use <wbr> instead of ZERO-WIDTH SPACE (U+200B) to break segments 
- remove no-longer-needed onCopyCapture listener which previously  stripped ZWSPs
- update's deep-link.jsx's `text` prop type to accept `PropType.node`  to allow the above.

Closes #7513
Co-authored-by: Vladimir Gorej <vladimir.gorej@gmail.com>
This commit is contained in:
Mingwei Samuel
2021-09-30 05:52:33 -07:00
committed by GitHub
parent 9952849aa5
commit f88334a47d
2 changed files with 12 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ DeepLink.propTypes = {
enabled: PropTypes.bool,
isShown: PropTypes.bool,
path: PropTypes.string,
text: PropTypes.string
text: PropTypes.node
}
export default DeepLink