@comicrelief/component-library 8.6.1 → 8.6.2

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.
@@ -65,7 +65,8 @@ const Accordion = _ref6 => {
65
65
  return /*#__PURE__*/_react.default.createElement(Container, rest, /*#__PURE__*/_react.default.createElement(Button, {
66
66
  onClick: handleOpen,
67
67
  "aria-expanded": isOpen ? 'true' : 'false',
68
- ChevronKeyframes: ChevronKeyframes
68
+ ChevronKeyframes: ChevronKeyframes,
69
+ type: "button"
69
70
  }, title, /*#__PURE__*/_react.default.createElement(Icon, null, /*#__PURE__*/_react.default.createElement(_index.Chevron, {
70
71
  colour: "black",
71
72
  direction: isOpen ? 'up' : 'down'
@@ -114,6 +114,7 @@ exports[`renders correctly 1`] = `
114
114
  aria-expanded="false"
115
115
  className="c1"
116
116
  onClick={[Function]}
117
+ type="button"
117
118
  >
118
119
  <h2
119
120
  className="c2"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.6.1",
4
+ "version": "8.6.2",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -83,7 +83,7 @@ const Accordion = ({
83
83
 
84
84
  return (
85
85
  <Container {...rest}>
86
- <Button onClick={handleOpen} aria-expanded={isOpen ? 'true' : 'false'} ChevronKeyframes={ChevronKeyframes}>
86
+ <Button onClick={handleOpen} aria-expanded={isOpen ? 'true' : 'false'} ChevronKeyframes={ChevronKeyframes} type="button">
87
87
  {title}
88
88
  <Icon>
89
89
  <Chevron colour="black" direction={isOpen ? 'up' : 'down'} />
@@ -114,6 +114,7 @@ exports[`renders correctly 1`] = `
114
114
  aria-expanded="false"
115
115
  className="c1"
116
116
  onClick={[Function]}
117
+ type="button"
117
118
  >
118
119
  <h2
119
120
  className="c2"