diff --git a/.nvmrc b/.nvmrc index 80685e77e..f03c4db80 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.13 \ No newline at end of file +20.13.0 \ No newline at end of file diff --git a/components/atom/tag/src/Actionable/Container.js b/components/atom/tag/src/Actionable/Container.js index c1928a0ac..a5dc6beec 100644 --- a/components/atom/tag/src/Actionable/Container.js +++ b/components/atom/tag/src/Actionable/Container.js @@ -9,11 +9,11 @@ import {LINK_TYPES} from '../constants.js' */ const ActionableTagContainer = forwardRef( ({Link, href, target, rel, readOnly, disabled, children, ...props}, forwardedRef) => { - const Component = href !== undefined ? Link : 'span' + const Component = href !== undefined ? Link : 'button' return ( { }) }) describe('Button', () => { - it('given an href should render a link', () => { + it('given no href should render a button', () => { // Given const props = { label: 'label', @@ -146,7 +146,7 @@ describe(json.name, () => { // Then expect(tagElement.innerHTML).to.be.a('string') - expect(tagElement.nodeName).to.equal('SPAN') + expect(tagElement.nodeName).to.equal('BUTTON') }) }) })