@hig/text-link
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -1592,2 +1592,3 @@ import React, { Component } from 'react'; | ||
var _createEmotion = createEmotion(context), | ||
cx = _createEmotion.cx, | ||
css = _createEmotion.css; | ||
@@ -1677,2 +1678,4 @@ | ||
var className = otherProps.className; | ||
var Element = link ? "a" : "span"; | ||
@@ -1717,4 +1720,4 @@ var linkProps = link ? { | ||
Element, | ||
_extends$1({}, linkProps, { | ||
className: css(styles), | ||
_extends$1({}, linkProps, otherProps, { | ||
className: cx(css(styles), className), | ||
onBlur: handleBlur, | ||
@@ -1727,3 +1730,3 @@ onFocus: handleFocus, | ||
onClick: onClick | ||
}, otherProps), | ||
}), | ||
children | ||
@@ -1730,0 +1733,0 @@ ); |
@@ -1599,2 +1599,3 @@ 'use strict'; | ||
var _createEmotion = createEmotion(context), | ||
cx = _createEmotion.cx, | ||
css = _createEmotion.css; | ||
@@ -1684,2 +1685,4 @@ | ||
var className = otherProps.className; | ||
var Element = link ? "a" : "span"; | ||
@@ -1724,4 +1727,4 @@ var linkProps = link ? { | ||
Element, | ||
_extends$1({}, linkProps, { | ||
className: css(styles), | ||
_extends$1({}, linkProps, otherProps, { | ||
className: cx(css(styles), className), | ||
onBlur: handleBlur, | ||
@@ -1734,3 +1737,3 @@ onFocus: handleFocus, | ||
onClick: onClick | ||
}, otherProps), | ||
}), | ||
children | ||
@@ -1737,0 +1740,0 @@ ); |
@@ -0,1 +1,8 @@ | ||
# [@hig/text-link-v1.1.0](https://github.com/Autodesk/hig/compare/@hig/text-link@1.0.1...@hig/text-link@1.1.0) (2020-02-21) | ||
### Features | ||
* allow className to be passed down ([e0c7205](https://github.com/Autodesk/hig/commit/e0c7205)) | ||
# [@hig/text-link-v1.0.1](https://github.com/Autodesk/hig/compare/@hig/text-link@1.0.0...@hig/text-link@1.0.1) (2019-03-13) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@hig/text-link", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "HIG Text Link", | ||
@@ -25,4 +25,4 @@ "author": "Autodesk Inc.", | ||
"peerDependencies": { | ||
"@hig/theme-context": "^2.1.3", | ||
"@hig/theme-data": "^2.3.3", | ||
"@hig/theme-context": "^3.0.0", | ||
"@hig/theme-data": "^2.14.0", | ||
"react": "^15.4.1 || ^16.3.2" | ||
@@ -29,0 +29,0 @@ }, |
@@ -27,1 +27,4 @@ # Text Link | ||
``` | ||
## Custom CSS | ||
Use the `className` prop to pass in a css class name to the outermost container of the component. The class name will also pass down to most of the other styled elements within the component. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112822
3096
30