@tds/core-heading
Advanced tools
Comparing version 1.1.11 to 1.2.0
@@ -45,2 +45,16 @@ import React from 'react' | ||
it('renders as a span', () => { | ||
const heading = doMount({ level: 'h4', tag: 'span' }) | ||
expect(heading).toHaveClassName('h4') | ||
expect(heading).toHaveDisplayName('span') | ||
}) | ||
it('renders as a div', () => { | ||
const heading = doMount({ level: 'h4', tag: 'div' }) | ||
expect(heading).toHaveClassName('h4') | ||
expect(heading).toHaveDisplayName('div') | ||
}) | ||
it('renders a heading in the same tag as level if tag is not specified', () => { | ||
@@ -47,0 +61,0 @@ const heading = doMount({ level: 'h4' }) |
@@ -6,2 +6,14 @@ # Change Log | ||
# [1.2.0](https://github.com/telusdigital/tds/compare/@tds/core-heading@1.1.11...@tds/core-heading@1.2.0) (2019-03-28) | ||
### Features | ||
* **core-heading:** add div option to tag prop ([3090634](https://github.com/telusdigital/tds/commit/3090634)) | ||
* **core-heading:** add span option to tag prop ([22bd433](https://github.com/telusdigital/tds/commit/22bd433)) | ||
## [1.1.11](https://github.com/telusdigital/tds/compare/@tds/core-heading@1.1.10...@tds/core-heading@1.1.11) (2019-03-20) | ||
@@ -8,0 +20,0 @@ |
@@ -180,3 +180,3 @@ 'use strict'; | ||
*/ | ||
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4']), | ||
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'div', 'span']), | ||
@@ -183,0 +183,0 @@ /** |
@@ -176,3 +176,3 @@ import React from 'react'; | ||
*/ | ||
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4']), | ||
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'div', 'span']), | ||
@@ -179,0 +179,0 @@ /** |
@@ -45,3 +45,3 @@ import React from 'react' | ||
*/ | ||
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4']), | ||
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'div', 'span']), | ||
/** | ||
@@ -48,0 +48,0 @@ * Invert the text color to appear light on dark backgrounds. |
{ | ||
"name": "@tds/core-heading", | ||
"version": "1.1.11", | ||
"version": "1.2.0", | ||
"description": "Page headings", | ||
@@ -35,3 +35,3 @@ "main": "index.cjs.js", | ||
}, | ||
"gitHead": "196e6c4eabd01d8f21cfb4e37a223b04ee7f2ac0" | ||
"gitHead": "75271399f62033f94090e64280329ed148b6ee2f" | ||
} |
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
34324
614